fix crash when showing animation

This commit is contained in:
Tanasart 2024-12-24 12:27:09 +07:00
parent ce9b7b866e
commit e4aa459571
2 changed files with 1 additions and 2 deletions

View file

@ -169,7 +169,7 @@ function drawWidget(xx, yy, ww, _m, jun, global_var = true, _hover = false, _foc
#region right buttons
if(jun.connect_type == CONNECT_TYPE.input && breakLine && jun.is_anim) { // Animation
var _anim = jun.animator;
var bx = xx + ww - ui(12);
var by = lb_y;
var b = buttonInstant(THEME.button_hide, bx - ui(12), by - ui(12), ui(24), ui(24), _m, _hover, _focus, "", THEME.prop_keyframe, 2)

View file

@ -758,7 +758,6 @@ function __initNodes() {
addNodeObject(d3d, "RM Combine", s_node_rm_combine, "Node_RM_Combine", [1, Node_RM_Combine], ["ray marching", "rm boolean"]).setVersion(11740);
addNodeObject(d3d, "RM Render", s_node_rm_render, "Node_RM_Render", [1, Node_RM_Render], ["ray marching"]).setVersion(11740);
addNodeObject(d3d, "RM Cloud", s_node_RM_Cloud, "Node_RM_Cloud", [1, Node_RM_Cloud],, "Generate distance field cloud.").patreonExtra();
#endregion
#region generator