From f1e554e094094d2edd3101cec0921fdaefa16bb4 Mon Sep 17 00:00:00 2001 From: Tanasart Date: Sat, 20 Jul 2024 14:07:34 +0700 Subject: [PATCH] - [RM Primitive] Fix Background and Draw BG not working. --- scripts/draw_setter/draw_setter.yy | 2 +- scripts/node_data/node_data.gml | 4 ++-- scripts/node_rm_combine/node_rm_combine.gml | 2 +- scripts/node_rm_primitive/node_rm_primitive.gml | 6 +++--- scripts/node_rm_render/node_rm_render.gml | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/draw_setter/draw_setter.yy b/scripts/draw_setter/draw_setter.yy index 7bef0a955..d96081b68 100644 --- a/scripts/draw_setter/draw_setter.yy +++ b/scripts/draw_setter/draw_setter.yy @@ -1,5 +1,5 @@ { - "$GMScript":"v1", + "$GMScript":"", "%Name":"draw_setter", "isCompatibility":false, "isDnD":false, diff --git a/scripts/node_data/node_data.gml b/scripts/node_data/node_data.gml index 127842985..d9de89552 100644 --- a/scripts/node_data/node_data.gml +++ b/scripts/node_data/node_data.gml @@ -86,8 +86,8 @@ function Node(_x, _y, _group = noone) : __Node_Base(_x, _y) constructor { bg_sel_spr = THEME.node_active; name = ""; - display_name = ""; - internalName = ""; + display_name = ""; + internalName = ""; onSetDisplayName = noone; renamed = false; diff --git a/scripts/node_rm_combine/node_rm_combine.gml b/scripts/node_rm_combine/node_rm_combine.gml index ff0242bd0..0ecfc0f71 100644 --- a/scripts/node_rm_combine/node_rm_combine.gml +++ b/scripts/node_rm_combine/node_rm_combine.gml @@ -27,7 +27,7 @@ function Node_RM_Combine(_x, _y, _group = noone) : Node_RM(_x, _y, _group) const inputs[| 8] = nodeValue("Ambient Level", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, 0.2) .setDisplay(VALUE_DISPLAY.slider); - inputs[| 9] = nodeValue("Light Position", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, [ -.5, -.5, 1 ]) + inputs[| 9] = nodeValue("Light Position", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, [ -.4, -.5, 1 ]) .setDisplay(VALUE_DISPLAY.vector); inputs[| 10] = nodeValue("Environment", self, JUNCTION_CONNECT.input, VALUE_TYPE.surface, false); diff --git a/scripts/node_rm_primitive/node_rm_primitive.gml b/scripts/node_rm_primitive/node_rm_primitive.gml index 4028d991b..89dd9b059 100644 --- a/scripts/node_rm_primitive/node_rm_primitive.gml +++ b/scripts/node_rm_primitive/node_rm_primitive.gml @@ -40,7 +40,7 @@ function Node_RM_Primitive(_x, _y, _group = noone) : Node_RM(_x, _y, _group) con inputs[| 7] = nodeValue("Depth", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, 0) .setDisplay(VALUE_DISPLAY.slider); - inputs[| 8] = nodeValue("Light Position", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, [ -.5, -.5, 1 ]) + inputs[| 8] = nodeValue("Light Position", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, [ -.4, -.5, 1 ]) .setDisplay(VALUE_DISPLAY.vector); inputs[| 9] = nodeValue("Base Color", self, JUNCTION_CONNECT.input, VALUE_TYPE.color, c_white); @@ -682,8 +682,8 @@ function Node_RM_Primitive(_x, _y, _group = noone) : Node_RM(_x, _y, _group) con environ.viewRange = _rng; environ.depthInt = _dpi; - environ.bgColor = _bgd; - environ.bgDraw = _bgc; + environ.bgColor = _bgc; + environ.bgDraw = _bgd; environ.ambInten = _ambI; environ.light = _lPos; diff --git a/scripts/node_rm_render/node_rm_render.gml b/scripts/node_rm_render/node_rm_render.gml index f0b2e91a9..6ef6be4d3 100644 --- a/scripts/node_rm_render/node_rm_render.gml +++ b/scripts/node_rm_render/node_rm_render.gml @@ -27,7 +27,7 @@ function Node_RM_Render(_x, _y, _group = noone) : Node_RM(_x, _y, _group) constr inputs[| 8] = nodeValue("Ambient Level", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, 0.2) .setDisplay(VALUE_DISPLAY.slider); - inputs[| 9] = nodeValue("Light Position", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, [ -.5, -.5, 1 ]) + inputs[| 9] = nodeValue("Light Position", self, JUNCTION_CONNECT.input, VALUE_TYPE.float, [ -.4, -.5, 1 ]) .setDisplay(VALUE_DISPLAY.vector); inputs[| 10] = nodeValue("Environment", self, JUNCTION_CONNECT.input, VALUE_TYPE.surface, false);