GPv3: Opacity modifier #116946

Merged
Lukas Tönne merged 52 commits from LukasTonne/blender:gp3-opacity-modifier into main 2024-01-16 16:56:22 +01:00

52 Commits

Author SHA1 Message Date
Lukas Tönne 5fdae3d54a Simplified some UI labels and RNA UI names. 2024-01-16 16:54:01 +01:00
Lukas Tönne 3fec3e5471 Remove layout decorators from correct row layouts for alignment. 2024-01-16 16:46:40 +01:00
Lukas Tönne 5fb3351d0f VArray local variable instead of AttributeReader. 2024-01-16 16:15:42 +01:00
Lukas Tönne 11f54b0817 Use auto to shorten modifier cast. 2024-01-16 16:13:20 +01:00
Lukas Tönne 3ae79ab53c Update copyright notices. 2024-01-16 16:11:58 +01:00
Lukas Tönne a216b35b51 Update description of opacity modifier. 2024-01-16 16:10:10 +01:00
Lukas Tönne 50ca30a504 Revert incorrect clang-format changes. 2024-01-16 15:40:36 +01:00
Lukas Tönne c43569fc8f Merge branch 'main' into gp3-opacity-modifier 2024-01-16 15:37:42 +01:00
Lukas Tönne aec063e8e7 Removed unused line. 2024-01-16 15:29:22 +01:00
Lukas Tönne abd248fa5e Use parallel loops for drawings and curves. 2024-01-16 15:18:52 +01:00
Lukas Tönne e3fd2127f0 Remove redundant local variables. 2024-01-16 14:50:22 +01:00
Lukas Tönne 0e9a03886c Use `blender::modifier::greasepencil` namespace. 2024-01-16 14:32:22 +01:00
Lukas Tönne e5e2647e46 C++ style casts. 2024-01-16 12:27:05 +01:00
Lukas Tönne d600c0f5ac Skip hardness modulation if the attribute does not exist. 2024-01-16 12:23:35 +01:00
Lukas Tönne dc1961e798 points_range -> points 2024-01-16 12:10:50 +01:00
Lukas Tönne e99e274f81 Use generic attributes for vertex group weights. 2024-01-16 12:08:07 +01:00
Lukas Tönne adce5588c5 Merge branch 'main' into gp3-opacity-modifier 2024-01-16 11:07:06 +01:00
Lukas Tönne a640088fe9 Use "RowWithHeader" feature to put pass toggles on the same line. 2024-01-15 16:57:41 +01:00
Lukas Tönne 3c45f62887 BKE_grease_pencil_object_material_index_get was removed.
BKE_object_material_index_get does exactly the same thing.
2024-01-15 16:28:27 +01:00
Lukas Tönne 0a210dc98d Merge branch 'main' into gp3-opacity-modifier 2024-01-15 16:15:42 +01:00
Lukas Tönne 7eaa51f282 Removed outdated comment. 2024-01-12 18:08:01 +01:00
Lukas Tönne 15aeafe9ec Include color factor in the uniform opacity mode. 2024-01-12 16:55:04 +01:00
Lukas Tönne 3ec92d9530 Initialize internal curve table after file read. 2024-01-12 16:52:10 +01:00
Lukas Tönne 6f38dcdec7 Fix inverted "uniform" setting. 2024-01-12 16:06:53 +01:00
Lukas Tönne 50a330a250 Fixed DNA defaults for opacity modifier. 2024-01-12 15:40:19 +01:00
Lukas Tönne 46a82c6a00 Added missing read/write code for curve mapping. 2024-01-12 15:13:50 +01:00
Lukas Tönne ca2413e91d UI drawing for opacity modifier properties. 2024-01-12 15:04:04 +01:00
Lukas Tönne e47d168b2b RNA definition for opacity modifier settings. 2024-01-12 14:38:24 +01:00
Lukas Tönne 1577d8175a Flattened the DNA struct for modifier influence. 2024-01-12 14:20:39 +01:00
Lukas Tönne b3f163ee63 Ported evaluation functions for the opacity modifier. 2024-01-12 13:51:13 +01:00
Lukas Tönne 2584d19d67 Merge branch 'gp3-modifier-filters' into gp3-opacity-modifier 2024-01-11 18:25:50 +01:00
Lukas Tönne 6ff68593cb Flattened RNA definition to add filter properties directly to modifiers. 2024-01-11 18:23:36 +01:00
Lukas Tönne c7a3f9aecb Added custom curve settings to generic modifier influence data. 2024-01-11 18:19:23 +01:00
Lukas Tönne cf5e9d8d38 Influence settings for vertex groups. 2024-01-11 18:18:57 +01:00
Lukas Tönne 057fa04e3e Flattened RNA definition to add filter properties directly to modifiers. 2024-01-11 18:16:55 +01:00
Lukas Tönne 1e94f8519a Added custom curve settings to generic modifier influence data. 2024-01-11 17:08:05 +01:00
Lukas Tönne ae51e9c4b9 Influence settings for vertex groups. 2024-01-11 15:11:32 +01:00
Lukas Tönne 4097218563 Merge branch 'gp3-modifier-filters' into gp3-opacity-modifier 2024-01-11 13:12:09 +01:00
Lukas Tönne d6b1232d07 Split the filters for GP modifiers into separate structs.
This will allow easier combination of influence settings for various
modifier types.
2024-01-11 13:09:20 +01:00
Lukas Tönne 25cd79488b Split the filters for GP modifiers into separate structs.
This will allow easier combination of influence settings for various
modifier types.
2024-01-11 13:04:31 +01:00
Lukas Tönne 4db9214fd7 Merge branch 'gp3-modifier-filters' into gp3-opacity-modifier 2024-01-11 12:14:57 +01:00
Lukas Tönne dddd4eb52a General filter settings and functions for Grease Pencil modifiers. 2024-01-11 12:03:46 +01:00
Lukas Tönne 35b8228385 Cleanup: more consistent function names. 2024-01-11 11:52:49 +01:00
Lukas Tönne a3109b6e82 Use the new uiLayoutPanel function to draw influence subpanel. 2024-01-11 11:41:22 +01:00
Lukas Tönne bab7a2f907 Use explicit flags to turn pass filters on/off.
GP2 was using "pass > 0" as a toggle for pass filters, but 0 is a valid
pass ID, so it was never possible to select pass 0.
2024-01-11 10:46:46 +01:00
Lukas Tönne 3fa0c4dfba Fix early return value, should be full mask instead of empty. 2024-01-11 09:41:59 +01:00
Lukas Tönne cbd61664ab Added index mask for curves. 2024-01-10 18:59:17 +01:00
Lukas Tönne cd9cb1c279 Merge branch 'main' into gp3-opacity-modifier 2024-01-10 18:33:09 +01:00
Lukas Tönne 519df52896 Added boilerplate code for filter data and panel drawing. 2024-01-10 18:28:43 +01:00
Lukas Tönne 2fe5dd11a1 DNA filter struct for grease pencil modifiers.
This comes with utility functions that generate index masks, which can
then be used to filter layers and strokes by layer name, material, or
pass.
2024-01-10 16:25:11 +01:00
Lukas Tönne ca665e7ad8 Utility function for gathering drawings for modifiers. 2024-01-10 12:19:12 +01:00
Lukas Tönne 4ba55e7805 Skeleton modifier for grease pencil opacity. 2024-01-09 15:37:10 +01:00