Commit Graph

44 Commits

Author SHA1 Message Date
b17b7bb583 Added undo redo support form mat maker gd's gradient editor. This also fixes seamless color editing with it. 2022-03-08 12:08:30 +01:00
5115167821 Also added undo redo support for creating and removing nodes in mat_maker_gd's addon. 2022-01-22 01:31:11 +01:00
49efd3f106 Fix dragging nodes in mat_maker_gd after recent changes. Also implemented undo redo support for node drag events. 2022-01-22 01:25:50 +01:00
23344760e7 Now ignore changes in MatMakerGDEditor is done with an int instad of a bool, so it won't matter if ignore is set multiple times. Also ignore changes in recreate, and don't allow multiple recreate()s to run. 2022-01-21 19:03:56 +01:00
2ada5fa3b1 Don't connect to the MMnode's changed event in mm_graph_node as it's not needed. Also set ignore changes when a texture is changed. 2022-01-21 18:59:55 +01:00
b7a5f6bcbd Connect to material's change event after calling recreate(). 2022-01-21 13:35:46 +01:00
2ce6e4d466 Implemented undo redo support for mat_maker_gd. It does have some issues with undoing some of the changes, those will be fixed later. However all actions seems to properly mark the resource as dirty. 2022-01-21 13:22:39 +01:00
547197e78f Improved the threading logic of MMMaterial's render by quite a bit. Also updated ThreadPool to get the new cleanups / fixes / api improvements required. 2021-10-31 12:37:51 +01:00
d63dbbbf68 Math node for mat_maker_gd. 2021-10-30 15:52:14 +02:00
2dcac48022 fill_to_color and fill_to_random_color nodes for mat_maker_gd. 2021-10-30 11:40:09 +02:00
1d27ddd159 Greyscale quantize and tonality nodes. 2021-10-27 18:26:06 +02:00
e7556f14de sdf3d_shape_box node. 2021-10-26 10:47:27 +02:00
facdcb6469 Now implemented node deletion. 2021-10-24 12:49:49 +02:00
33be950fd6 Make texture slots scale their images. Also their size is now set to 128x128. 2021-10-24 02:37:14 +02:00
3841c50674 Added sd_shape_line node. Initial setup for curves, but they don't yet work properly with it. 2021-10-20 18:33:11 +02:00
a690c76612 Made the polygon editor work with my setup, and added sd_polygon_shape node. 2021-10-20 17:46:31 +02:00
bcd0fdbbb1 Added sd show and sd shape circle nodes. 2021-10-19 18:04:00 +02:00
4f6829beb3 Pattern node. 2021-10-18 14:01:18 +02:00
e04f17dac2 Added the image picker button from Material Maker. Also added image node. 2021-10-18 12:33:31 +02:00
c9edde9ef9 Added uniform and greyscale_uniform nodes for mat_maker_gd. 2021-10-18 11:00:13 +02:00
4282cc8385 Implemented the gradient node. Made Material Maker's gradient editor work with my setup. 2021-10-17 17:18:41 +02:00
c07ca3d8d8 Implement restoring node connections on opening an MMMaterian in mat_maker_gd's editor. 2021-10-09 19:30:57 +02:00
da126d1d45 Removed the input and output slot type parameter from the simple MMGraphNode property methods. Input and output was only available with universal properties anyway. 2021-10-09 19:15:15 +02:00
956d35fd84 Add support for disconnection and connecting universal properties via the mat_maker_gd editor plugin. 2021-10-09 18:48:01 +02:00
52858a6970 Add line edit slot support to mm_graph_node. 2021-10-09 14:47:26 +02:00
c816f0e0fe Finish up the new mat_maker_gd input/output notification api and made shape use it. Now shape's image updates whenever a property changes. 2021-10-09 14:04:09 +02:00
6f5c7395ba Added a new output node. 2021-10-07 15:47:09 +02:00
e31aedbb1b Now add slot universal methods in MMGraphNode only take an universal property as argument. Also added an universal texture slot. Had to add init_properties and _init_properties, and had to change register_methods to _register_methods in subclasses. 2021-10-06 10:30:22 +02:00
1611efc9d1 Moved the SlotTypes enum from MMNode to MMNodeUniversalProperty. 2021-10-06 09:15:48 +02:00
04c3098390 Fix issues with universal property handling in MMGraphNode. 2021-10-06 00:51:52 +02:00
0923f1095b Enum slot support for mat_maker_gd. 2021-10-06 00:23:24 +02:00
27471b8bdf Universal input support for mat_maker_gd. Nothing is using it yet, so it might need fixes. 2021-10-05 23:14:54 +02:00
88aa8e84ac Optional range parameter for some of ht eadd slot methods. 2021-10-05 20:59:47 +02:00
59c43c0cab Now all add_slot methods return the slot index. 2021-10-05 20:21:11 +02:00
b55487d6df Added a vector2 slot to MMGraphNode. 2021-10-04 18:29:11 +02:00
e8a3874cfb Added universal slot type. 2021-10-04 15:10:38 +02:00
679e992ef8 Add step as a parameter to add_slot_float. 2021-10-04 15:00:00 +02:00
ef784088b4 Implemented int and float slots. 2021-10-04 14:58:15 +02:00
634d28b713 Added slot color support. 2021-10-04 13:28:00 +02:00
4b334a6ad6 Initial slot api for MMGraphNode. Already supports images. Also implemented the image generation helper methods for MMMaterial and MMNode. 2021-10-04 13:09:43 +02:00
537d44bc63 Now the editor loads and created nodes from MMNodes, and also implemented MMNode and graphnode creating logic for the add button/dialog. 2021-10-04 11:55:47 +02:00
c5621036b2 Added an Add button to the mat maker's editor. 2021-10-04 11:27:35 +02:00
0c099d3325 Added a new MMGraphNode script. 2021-10-04 11:24:47 +02:00
059cabc48b Main nodes for mat_maker_gd and Initial setup for an editor plugin. 2021-10-03 19:56:35 +02:00