mirror of
https://github.com/Relintai/material-maker.git
synced 2024-12-23 21:16:54 +01:00
Fixed sdf3d -> sdf3dc conversion
This commit is contained in:
parent
6b183aa7a0
commit
c59496a3a8
@ -55,7 +55,7 @@
|
||||
"params":"p",
|
||||
"slot_type":2,
|
||||
"convert":[
|
||||
{ "type":"sdf3dc", "expr":"vec2($(value)).rgb, 0.0)" }
|
||||
{ "type":"sdf3dc", "expr":"vec2($(value), 0.0)" }
|
||||
],
|
||||
"color":{ "r":0.5, "g":0.0, "b":0.0, "a":1.0 }
|
||||
},
|
||||
|
@ -177,8 +177,9 @@ func update_node() -> void:
|
||||
var type_left = 0
|
||||
if typeof(input) == TYPE_DICTIONARY:
|
||||
enable_left = true
|
||||
color_left = mm_io_types.types[input.type].color
|
||||
type_left = mm_io_types.types[input.type].slot_type
|
||||
if mm_io_types.types.has(input.type):
|
||||
color_left = mm_io_types.types[input.type].color
|
||||
type_left = mm_io_types.types[input.type].slot_type
|
||||
set_slot(i, enable_left, type_left, color_left, false, 0, Color())
|
||||
var hsizer : HBoxContainer = HBoxContainer.new()
|
||||
hsizer.size_flags_horizontal = SIZE_EXPAND | SIZE_FILL
|
||||
@ -251,8 +252,9 @@ func update_node() -> void:
|
||||
assert(typeof(output) == TYPE_DICTIONARY)
|
||||
assert(output.has("type"))
|
||||
enable_right = true
|
||||
color_right = mm_io_types.types[output.type].color
|
||||
type_right = mm_io_types.types[output.type].slot_type
|
||||
if mm_io_types.types.has(output.type):
|
||||
color_right = mm_io_types.types[output.type].color
|
||||
type_right = mm_io_types.types[output.type].slot_type
|
||||
set_slot(i, is_slot_enabled_left(i), get_slot_type_left(i), get_slot_color_left(i), enable_right, type_right, color_right)
|
||||
var hsizer : HBoxContainer
|
||||
while i >= get_child_count():
|
||||
|
Loading…
Reference in New Issue
Block a user