GPv3: send notifiers and undo push when changing the active layer #110378

Merged
Pratik Borhade merged 7 commits from PratikPB2123/blender:gpv3-rna-prop-active-layer-index into main 2023-07-27 11:37:53 +02:00

7 Commits

Author SHA1 Message Date
Pratik Borhade ec757b4065 Use RNA in on_activate function to change active layer 2023-07-27 14:11:47 +05:30
Pratik Borhade 60853baf5a Use on_activate to send notifiers and undo push 2023-07-26 21:04:59 +05:30
Pratik Borhade d73a5fc461 Merge branch 'main' into gpv3-rna-prop-active-layer-index 2023-07-26 20:43:36 +05:30
Pratik Borhade 9a23b5c876 Revert "GPv3: RNA property to set active layer"
This reverts commit 55107d6954.
2023-07-26 20:41:27 +05:30
Pratik Borhade 7e9d68296a Use has_active_layer and formatting 2023-07-24 15:48:25 +05:30
Pratik Borhade 03bccd6905 Cleanup 2023-07-24 15:22:48 +05:30
Pratik Borhade 55107d6954 GPv3: RNA property to set active layer
Use "active_index" RNA property to change active layer. This will allow
to sen updates to other regions when active layer is changed and also
registers undo step.

Logic of this property is similar to legay GP.
Right now GPv3 is using `tree_row_click_fn/on_activate` function to change
the active layer.
2023-07-22 19:29:59 +05:30