http://www.miikahweb.com/feed.php MiikaHweb - Blender Asset-browser-snap-dragging Branch http://www.miikahweb.com/ MiikaHweb - Blender Asset-browser-snap-dragging Branch fi Wed, 28 Jul 21 15:17:03 +0000 MiikaHweb RSS contact at miikahweb.com <![CDATA[[eedde9d]: Adjustments to drag info drawing]]> http://www.miikahweb.com/en/blender/git-logs/commit/eedde9db74bb41b8fbdc5fb91663d307ba55c43c eedde9d
Branches : asset-browser-snap-dragging
Author : Julian Eisel (Severin)
----------------------------------------
Adjustments to drag info drawing

* Change the "Add Named Object" drag into string to "Add Object". The "Named"
part is kinda useless info and relates to an implementation detail.
* Draw drag info closer to the cursor. Looked quite off before.

----------------------------------------
2 Paths Changed]]>
Sun, 13 Jun 2021 21:48:06 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/eedde9db74bb41b8fbdc5fb91663d307ba55c43cJulian Eisel
<![CDATA[[2ef120a]: Fix merge error after last merge]]> http://www.miikahweb.com/en/blender/git-logs/commit/2ef120ace0eb60ce29f07998dc7f12211aba6aef 2ef120a
Branches : asset-browser-snap-dragging
Author : Julian Eisel (Severin)
----------------------------------------
Fix merge error after last merge

----------------------------------------
1 Path Changed]]>
Sun, 13 Jun 2021 20:03:43 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/2ef120ace0eb60ce29f07998dc7f12211aba6aefJulian Eisel
<![CDATA[[e20266b]: Merge branch 'master' into asset-browser-snap-dragging]]> http://www.miikahweb.com/en/blender/git-logs/commit/e20266b949990e823b1a416a39eb2b8abe2f1c5c e20266b
Branches : asset-browser-snap-dragging
Author : Julian Eisel (Severin)
----------------------------------------
Merge branch 'master' into asset-browser-snap-dragging

----------------------------------------
0 Paths Changed]]>
Sun, 13 Jun 2021 20:06:02 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/e20266b949990e823b1a416a39eb2b8abe2f1c5cJulian Eisel
<![CDATA[[4ac48b1]: Merge branch 'master' into asset-browser-snap-dragging]]> http://www.miikahweb.com/en/blender/git-logs/commit/4ac48b1390dca27a4aee3390c8c516594f4d43ed 4ac48b1
Branches : asset-browser-snap-dragging
Author : Julian Eisel (Severin)
----------------------------------------
Merge branch 'master' into asset-browser-snap-dragging

----------------------------------------
0 Paths Changed]]>
Sat, 05 Jun 2021 16:01:27 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/4ac48b1390dca27a4aee3390c8c516594f4d43edJulian Eisel
<![CDATA[[99cc9df]: Merge branch 'master' into asset-browser-snap-dragging]]> http://www.miikahweb.com/en/blender/git-logs/commit/99cc9df257a324b045505a5667a22f7860719808 99cc9df
Branches : asset-browser, asset-browser-snap-dragging
Author : Julian Eisel (Severin)
----------------------------------------
Merge branch 'master' into asset-browser-snap-dragging

----------------------------------------
0 Paths Changed]]>
Fri, 21 May 2021 00:52:24 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/99cc9df257a324b045505a5667a22f7860719808Julian Eisel
<![CDATA[[5133286]: Merge remote-tracking branch 'origin/master' into asset-browser...]]> http://www.miikahweb.com/en/blender/git-logs/commit/513328602d8f1d6a380caf12594848f412290b49 5133286
Branches : asset-browser, asset-browser-snap-dragging
Author : Julian Eisel (Severin)
----------------------------------------
Merge remote-tracking branch 'origin/master' into asset-browser-snap-dragging

----------------------------------------
0 Paths Changed]]>
Tue, 11 May 2021 11:16:53 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/513328602d8f1d6a380caf12594848f412290b49Julian Eisel
<![CDATA[[279f271]: Snap based on the bounding box when dropping, not origin]]> http://www.miikahweb.com/en/blender/git-logs/commit/279f271a0abdf9dc138fce76b9144a6f89275163 279f271
Branches : asset-browser, asset-browser-snap-dragging
Author : Julian Eisel (Severin)
----------------------------------------
Snap based on the bounding box when dropping, not origin

This makes the dropping use the object's bounding box for snapping, so
that it matches the bounding box we draw while dragging.

Not that this may have to be optional in future, there may be valid
cases to use the origin instead of the bounding box for snapping.

----------------------------------------
5 Paths Changed]]>
Thu, 06 May 2021 19:45:08 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/279f271a0abdf9dc138fce76b9144a6f89275163Julian Eisel
<![CDATA[[f00d24e]: Merge remote-tracking branch 'origin/master' into asset-browser...]]> http://www.miikahweb.com/en/blender/git-logs/commit/f00d24e2c1fc949a15280f509c7b7630b5425857 f00d24e
Branches : asset-browser, asset-browser-snap-dragging
Author : Julian Eisel (Severin)
----------------------------------------
Merge remote-tracking branch 'origin/master' into asset-browser-snap-dragging

----------------------------------------
0 Paths Changed]]>
Thu, 06 May 2021 12:34:42 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/f00d24e2c1fc949a15280f509c7b7630b5425857Julian Eisel
<![CDATA[[3fdd579]: Merge remote-tracking branch 'origin/master' into asset-browser...]]> http://www.miikahweb.com/en/blender/git-logs/commit/3fdd579e7c6ad24d29e5ffc06c085ab40ddd0299 3fdd579
Branches : asset-browser, asset-browser-snap-dragging
Author : Julian Eisel (Severin)
----------------------------------------
Merge remote-tracking branch 'origin/master' into asset-browser-snap-dragging

----------------------------------------
0 Paths Changed]]>
Tue, 04 May 2021 14:56:32 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/3fdd579e7c6ad24d29e5ffc06c085ab40ddd0299Julian Eisel
<![CDATA[[963826d]: Merge remote-tracking branch 'origin/master' into asset-browser...]]> http://www.miikahweb.com/en/blender/git-logs/commit/963826d8a1c6f8d530f94a36a32d4157af36d9ff 963826d
Branches : asset-browser, asset-browser-snap-dragging
Author : Julian Eisel (Severin)
----------------------------------------
Merge remote-tracking branch 'origin/master' into asset-browser-snap-dragging

----------------------------------------
0 Paths Changed]]>
Tue, 04 May 2021 15:33:04 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/963826d8a1c6f8d530f94a36a32d4157af36d9ffJulian Eisel
<![CDATA[[bc4c9fe]: Fix crash when dragging emtpy into the 3D View]]> http://www.miikahweb.com/en/blender/git-logs/commit/bc4c9fea770fb1effcf5ccc39b95265e5c0ddd32 bc4c9fe
Branches : asset-browser, asset-browser-snap-dragging
Author : Julian Eisel (Severin)
----------------------------------------
Fix crash when dragging emtpy into the 3D View

----------------------------------------
1 Path Changed]]>
Fri, 30 Apr 2021 18:35:36 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/bc4c9fea770fb1effcf5ccc39b95265e5c0ddd32Julian Eisel
<![CDATA[[ac96c8a]: Merge branch 'master' into asset-browser-snap-dragging]]> http://www.miikahweb.com/en/blender/git-logs/commit/ac96c8a89898497010aaa12735be8eded5930140 ac96c8a
Branches : asset-browser, asset-browser-snap-dragging
Author : Julian Eisel (Severin)
----------------------------------------
Merge branch 'master' into asset-browser-snap-dragging

----------------------------------------
0 Paths Changed]]>
Fri, 30 Apr 2021 10:43:08 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/ac96c8a89898497010aaa12735be8eded5930140Julian Eisel
<![CDATA[[5df6caa]: Merge remote-tracking branch 'origin/master' into asset-browser...]]> http://www.miikahweb.com/en/blender/git-logs/commit/5df6caa7f36bd8f8c0fbea9faa3761323b6a5cfc 5df6caa
Branches : asset-browser, asset-browser-snap-dragging
Author : Julian Eisel (Severin)
----------------------------------------
Merge remote-tracking branch 'origin/master' into asset-browser-snap-dragging

----------------------------------------
0 Paths Changed]]>
Thu, 29 Apr 2021 16:50:29 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/5df6caa7f36bd8f8c0fbea9faa3761323b6a5cfcJulian Eisel
<![CDATA[[7800864]: Show a bounding box for object assets while dragging]]> http://www.miikahweb.com/en/blender/git-logs/commit/78008642ae010c64da4cb6b64911b44488823c3e 7800864
Branches : asset-browser, asset-browser-snap-dragging
Author : Julian Eisel (Severin)
----------------------------------------
Show a bounding box for object assets while dragging

Note: Object assets have to be saved with this commit or later for the bounding
box to appear.

Basic idea is:
* Store the bounding box (and related info) in the asset metadata.
* The bounding box has to be updated and written to custom properties of the
asset metadata.
* There's a new `AssetTypeInfo` struct, to set asset type dependent callbacks
or data (in future). ID types can conveniently define asset-type info as part
of their `IDTypeInfo` definition.
* The asset-type info can contain a custom callback to be executed before the
asset is saved. This is how the object can write its custom asset metadata.
* The dropbox can also register a callback to set properties for its
gizmo-group now. Used to copy
* The "placement plane" gizmo is scaled to the bounding box size too.
* For local ID assets, the data should be accessed directly, so the file
doesn't have to be saved to get the bounding box updated.

Also:
* Added proper gizmo group custom property support to C (was already supported
in Python, or in C with some hacking).
* Store the basis matrix (world matrix without parent or constraint transforms)
in the custom asset metadata. Used by the placement gizmo to scale the
bounding box to match the result visually when dropping.
* The preview image is disabled while dragging objects over the 3D view.
* The bounding box always snaps with its lower edge (Z axis) to the surface.
Snapping with other axes can be added still.
* However, actually dropping the object still uses the origin, so the drop
position may not match what the bounding box indicated. This could be changed
to also use the bounding box instead. Or the drawn bounding box should be
translated to respect the origin position.

----------------------------------------
20 Paths Changed]]>
Fri, 30 Apr 2021 00:25:33 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/78008642ae010c64da4cb6b64911b44488823c3eJulian Eisel
<![CDATA[[2a00e16]: Merge remote-tracking branch 'origin/master' into asset-browser...]]> http://www.miikahweb.com/en/blender/git-logs/commit/2a00e166829aa7f8f100af0555c0ae7c9cc55b85 2a00e16
Branches : asset-browser, asset-browser-snap-dragging
Author : Julian Eisel (Severin)
----------------------------------------
Merge remote-tracking branch 'origin/master' into asset-browser-snap-dragging

----------------------------------------
0 Paths Changed]]>
Wed, 28 Apr 2021 20:48:13 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/2a00e166829aa7f8f100af0555c0ae7c9cc55b85Julian Eisel
<![CDATA[[8a8208b]: Merge remote-tracking branch 'origin/master' into asset-browser...]]> http://www.miikahweb.com/en/blender/git-logs/commit/8a8208bd9537ea5b9985b478be8877297dd13f6e 8a8208b
Branches : asset-browser, asset-browser-snap-dragging
Author : Julian Eisel (Severin)
----------------------------------------
Merge remote-tracking branch 'origin/master' into asset-browser-snap-dragging

----------------------------------------
0 Paths Changed]]>
Mon, 26 Apr 2021 12:38:41 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/8a8208bd9537ea5b9985b478be8877297dd13f6eJulian Eisel
<![CDATA[[948d1b0]: Merge remote-tracking branch 'origin/master' into asset-browser...]]> http://www.miikahweb.com/en/blender/git-logs/commit/948d1b028412fb8d11c2b6f5fde780c30a4166cd 948d1b0
Branches : asset-browser, asset-browser-snap-dragging
Author : Julian Eisel (Severin)
----------------------------------------
Merge remote-tracking branch 'origin/master' into asset-browser-snap-dragging

----------------------------------------
0 Paths Changed]]>
Mon, 26 Apr 2021 19:02:09 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/948d1b028412fb8d11c2b6f5fde780c30a4166cdJulian Eisel
<![CDATA[[fcc42b3]: Basic snapping support for dropping objects]]> http://www.miikahweb.com/en/blender/git-logs/commit/fcc42b3d46b9954b464b95e84e387fb882029fe2 fcc42b3
Branches : asset-browser, asset-browser-snap-dragging
Author : Julian Eisel (Severin)
----------------------------------------
Basic snapping support for dropping objects

Uses the same snapping logic as the placement plane from the Add Object
tool, which means it matches the plane that we already draw as a
preview.

This is quite primitive at this point - you can't change options for the
snapping like the up-axis or the snapping target - but it already feels
quite great.
Another limitation is that it uses the origin of the dropped object to
place it, the bounding box should give better results in practice. This
is something we can add.

----------------------------------------
3 Paths Changed]]>
Thu, 22 Apr 2021 10:03:30 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/fcc42b3d46b9954b464b95e84e387fb882029fe2Julian Eisel
<![CDATA[[8cc294a]: Merge branch 'master' into asset-browser-snap-dragging]]> http://www.miikahweb.com/en/blender/git-logs/commit/8cc294a31537e2b962aac744ca710c95ef2591cb 8cc294a
Branches : asset-browser, asset-browser-snap-dragging
Author : Julian Eisel (Severin)
----------------------------------------
Merge branch 'master' into asset-browser-snap-dragging

----------------------------------------
0 Paths Changed]]>
Thu, 22 Apr 2021 08:15:57 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/8cc294a31537e2b962aac744ca710c95ef2591cbJulian Eisel
<![CDATA[[8ddf9f0]: Initial prototype for snapping plane feedback while dragging...]]> http://www.miikahweb.com/en/blender/git-logs/commit/8ddf9f06ab82b1164b40ef9b7ed4ecadede9fb06 8ddf9f0
Branches : asset-browser, asset-browser-snap-dragging
Author : Julian Eisel (Severin)
----------------------------------------
Initial prototype for snapping plane feedback while dragging assets

Shows the same grid overlay as the Add Object tool when dragging an
asset into a 3D view. Uses the gizmo-system for that.
How visibility of gizmo-groups is managed is rather tricky, for now I
hacked things a bit to work. I have ideas to make this nicer.

Besides that, this is generally a design that I think can work in
master: Just like tools, drop-boxes can set a gizmo-group to use while
they are active. If the gizmo-group supports usage while dragging, it is
drawn.

----------------------------------------
12 Paths Changed]]>
Wed, 21 Apr 2021 17:20:35 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/8ddf9f06ab82b1164b40ef9b7ed4ecadede9fb06Julian Eisel