Blender Git Loki

Blender Git "experimental_gp_weight" branch commits.

Page: 64 / 122

November 4, 2017, 04:43 (GMT)
Cleanup: Ported Lattice Modifier code over to new callbacks
November 4, 2017, 04:43 (GMT)
Cleanup: Use vec2f instead of defining our own 2d point type
November 4, 2017, 04:43 (GMT)
Outliner: Indicate which GP layer is active

Active layers get the colored pencil, while inactive ones get the dot
November 4, 2017, 04:43 (GMT)
Outliner now displays icons for GP Modifiers
November 4, 2017, 04:43 (GMT)
GP Modifiers: Replace defunct "Duplication" modifier with "Build" modifier

It doesn't actually do anything now, and most of its properties are
undefined as well, but we don't want to break any existing files now
(as renumbering the other modifiers would cause issues)

Note: BKE_gpencil_reset_modifiers() has been removed. If the array modifier
needs this, we will have to find another solution to this.
November 4, 2017, 04:43 (GMT)
Fixes to various GP Modifiers

* Array modifier can be shown in editmode
(TODO: When "Make Objects" is enabled, this breaks)

* Color (hue/sat) modifier was still using G.main
-> Updated to use palette slots instead
November 4, 2017, 04:43 (GMT)
Fix: Inconsistent behaviour between different GP array modifier cases

The main culprits here were:
1) Wrong order of matrix multiplication (resulting in inverted grid layout)

2) Directly reading off diagonals from matrix as scale, which failed when
objects were rotated
November 4, 2017, 04:43 (GMT)
Cleanup: Remove a bunch of redundant/bad old code
November 4, 2017, 04:43 (GMT)
Fix UI breakage (GP Modifiers / 3D View header) after ob->gpd --> ob->data refactor
November 4, 2017, 04:43 (GMT)
GP Array Modifier: Bring back draw-engine hack for array modifier drawing

This time, it only runs when "Make Objects" is enabled on a modifier,
giving users a workaround for the z-ordering problems.
November 4, 2017, 04:43 (GMT)
Fix: GP Modifiers UI was broken during the ob->gpd --> ob->data refactor
November 4, 2017, 04:43 (GMT)
Fix: GP array modifier's "count" property should have a lower "sane" limit

Previously, the upper bound for dragging in the UI was effectively unlimited.
This has the unfortunate consequence of causing hard resets (out of bounds/memory)
as I found out last night while testing this.
November 4, 2017, 04:43 (GMT)
GP Modifiers - Merge Array and Duplication modifiers

Array and Duplication modifiers basically implemented the same functionality,
except that:
1) Array was slightly more powerful (i.e. it could make a 3D grid instead of
just putting everything in a single line), and
2) Array created new objects when "Applying", while Duplication added to the
current datablock

This commit basically merges the functionality of both into the Array modifier.
I ended up recoding this modifier to hopefully work a lot faster.
* The resulting modifier more closely resembles the behaviour of the normal
Blender Array modifier.
* Performance should be better now with over 25 objects (previous array modifier
implementation lagged badly with more than 25-30 instances). The previous approach
of manually creating objects didn't work too well.

TODO:
* The functionality to disable the instance creation when the simplify options
are enabled is currently lost. Still need to figure out how to restore it
* The stubs/shell for the old Duplication modifier are still around. To be removed!
November 4, 2017, 04:43 (GMT)
Port Subdiv GP Modifier
November 4, 2017, 04:43 (GMT)
Restored manual gpencil_batch_cache_dirty() call when adding modifiers

There are too many problems leaving it out, even if in theory the depsgraph
calls should be taking care of it.
November 4, 2017, 04:43 (GMT)
Temporary (?) fix so that Hero project files get version patched correctly
November 4, 2017, 04:43 (GMT)
Porting more GP Modifiers

* Opacity modifier
* Color modifier
* Thickness modifier
* Tint modifier
November 4, 2017, 04:43 (GMT)
Cleanup: Remove unused function
November 4, 2017, 04:43 (GMT)
Fix: GP modifiers not updating when properties changed

Added back an explicit call to BKE_gpencil_batch_cache_dirty()
in the rna update callback for GPencil modifier properties.

However, instead of polluting the general rna_Modifier_update(),
this time we do this in a special wrapper/update callback for
dedicated GP modifier usage.

I'm unsure why the depsgraph isn't properly updating this case
- there's probably a missing relation between modifier properties
and GP ubereval (which calls the tagging), but where?!
November 4, 2017, 04:43 (GMT)
GP Modifier: Set up stubs for geometry modifiers too
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021