Blender Git Commits

Blender Git "greasepencil-object" branch commits.

Page: 289 / 345

November 4, 2017, 04:43 (GMT)
Cleanup - Move helper functions for GP modifiers into the modifiers module
November 4, 2017, 04:43 (GMT)
Cleanup - Use existing vertex groups function instead of defining out own
November 4, 2017, 04:43 (GMT)
Fix compiler warning about const vs non-const
November 4, 2017, 04:43 (GMT)
Fix "Apply Modifier" operator to use the new callbacks
November 4, 2017, 04:43 (GMT)
GP Modifiers - Change all applyModifier callbacks to bakeModifierGP callbacks
November 4, 2017, 04:43 (GMT)
ModifierTypeInfo - Add 3 dedicated callbacks to support GP modifier evaluation and operations

* deformStrokes - Handles the "stroke" modifiers currently evaluated in
BKE_gpencil_stroke_modifiers() - e.g. Thickness, Noise

* generateStrokes - Handles the "geometry" modifiers currently evaluated
in BKE_gpencil_geometry_modifiers() - e.g. Array

* bakeModifierGP - Dedicated callback for hosting the code currently
wrongly-placed in applyModifier. This gets called
when pressing the "Apply" button on a GP modifier.
November 4, 2017, 04:43 (GMT)
Compile fix: Missed a reference in previous commit

TODO: Calls to BKE_gpencil_layer_delframe() need to trigger a refresh
November 4, 2017, 04:43 (GMT)
Cleanup - Remove direct BKE_gpencil_batch_cache_dirty() code in favor of depsgraph tagging
November 4, 2017, 04:43 (GMT)
Cleanup: Eliminate BKE_gpencil_batch_cache_alldirty()

This accessed the global G.main directly, which we're trying to remove
November 4, 2017, 04:43 (GMT)
Fix: Version patching code was creating extra GP datablocks and throwing them away

After modifying the BKE_object_add() function to create a new GP datablock
by default, this change in behaviour would cause problems for the version
patching code fixing the old scene->gpd.
November 4, 2017, 04:43 (GMT)
Cleanup - Remove unused var
November 4, 2017, 04:43 (GMT)
Cleanup - Style
November 4, 2017, 04:43 (GMT)
Cleanup: Remove the redundant GP_TOOL_SOURCE_OBJECT stuff

Since we only have GP objects in the 3D view now, this is the only
setting that should be used. Therefore, there's no need to set this
setting or check if for any reasons anymore.
November 4, 2017, 04:43 (GMT)
Cleanup: Use standard logic for duplicating OB_GPENCIL objects and their data
November 4, 2017, 04:43 (GMT)
Fix: GP objects should get created with GP datablocks initialised already
(just like all other object types)

Previously, because the GP datablock was stored in a different place,
this had to be handled differently from other datablocks. But that
doesn't hold anymore, so it's time to fix that.
November 4, 2017, 04:43 (GMT)
Make BKE_gpencil_data_addnew() accept Main as an argument instead of using G.main
November 4, 2017, 04:43 (GMT)
Fix: Remove temporary debugging prints
November 4, 2017, 04:43 (GMT)
Fix: Remove most of the code for treating GP as a special case in the vertex group poll functions

These were causing crashes on GP datablocks with ob->data not set
when clicking on the Vertex Groups panel (i.e. as the operator lookups
would cause problems)
November 4, 2017, 04:43 (GMT)
Fix typo causing crashes when trying to draw GP objects
November 4, 2017, 04:43 (GMT)
Fix: Properties Editor was still showing the datablock selector for the old Object.grease_pencil
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021