From 7255c99ef76eebad80444cc0580c26b753958ab6 Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Thu, 5 Feb 2026 22:29:00 +0100 Subject: [PATCH] BLTAnimationNodeBlend2.sync is no more exposed as parameter, only as property. --- blendalot_animation_node.cpp | 11 ---- demo/main.tscn | 91 +++++++++++++-------------- demo/synced_blend_tree_walk_limp.tres | 7 +-- 3 files changed, 48 insertions(+), 61 deletions(-) diff --git a/blendalot_animation_node.cpp b/blendalot_animation_node.cpp index a0a53de..4399e0f 100644 --- a/blendalot_animation_node.cpp +++ b/blendalot_animation_node.cpp @@ -464,7 +464,6 @@ Variant BLTAnimationNodeBlend2::get_parameter_default_value(const StringName &p_ void BLTAnimationNodeBlend2::_get_property_list(List *p_list) const { p_list->push_back(PropertyInfo(Variant::FLOAT, blend_weight_pname, PROPERTY_HINT_RANGE, "0,1,0.01,or_less,or_greater")); - p_list->push_back(PropertyInfo(Variant::BOOL, sync_pname)); } bool BLTAnimationNodeBlend2::_get(const StringName &p_name, Variant &r_value) const { @@ -473,11 +472,6 @@ bool BLTAnimationNodeBlend2::_get(const StringName &p_name, Variant &r_value) co return true; } - if (p_name == sync_pname) { - r_value = sync; - return true; - } - return false; } @@ -487,11 +481,6 @@ bool BLTAnimationNodeBlend2::_set(const StringName &p_name, const Variant &p_val return true; } - if (p_name == sync_pname) { - sync = p_value; - return true; - } - return false; } diff --git a/demo/main.tscn b/demo/main.tscn index 411fc5a..c7c61c5 100644 --- a/demo/main.tscn +++ b/demo/main.tscn @@ -46,13 +46,12 @@ graph_offset = Vector2(-1120, -280) animation = &"animation_library/Walk-InPlace" [sub_resource type="BLTAnimationNodeBlendTree" id="BLTAnimationNodeBlendTree_7mycd"] -nodes/Output/position = null nodes/BLTAnimationNodeBlend2/node = SubResource("BLTAnimationNodeBlend2_bvt3d") -nodes/BLTAnimationNodeBlend2/position = null +nodes/BLTAnimationNodeBlend2/graph_offset = Vector2(-540, -120) "nodes/BLTAnimationNodeSampler 1/node" = SubResource("BLTAnimationNodeSampler_sntl5") -"nodes/BLTAnimationNodeSampler 1/position" = null +"nodes/BLTAnimationNodeSampler 1/graph_offset" = Vector2(-1120, 180) nodes/BLTAnimationNodeSampler/node = SubResource("BLTAnimationNodeSampler_n4m28") -nodes/BLTAnimationNodeSampler/position = null +nodes/BLTAnimationNodeSampler/graph_offset = Vector2(-1120, -280) node_connections = ["BLTAnimationNodeBlend2", 0, "BLTAnimationNodeSampler", "BLTAnimationNodeBlend2", 1, "BLTAnimationNodeSampler 1", "Output", 0, "BLTAnimationNodeBlend2"] [node name="Main" type="Node3D" unique_id=933302313] @@ -179,28 +178,28 @@ unique_name_in_owner = true transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.4, 0, 0) [node name="Skeleton3D" parent="Characters/MixamoAmyWalkRunSynced/Armature" parent_id_path=PackedInt32Array(2088190993, 52334938) index="0" unique_id=2014991417] -bones/0/position = Vector3(1.3737135, 42.922382, 0) -bones/2/position = Vector3(1.37469, -1.2283401, -63.996525) -bones/2/rotation = Quaternion(-0.69760156, -0.026379798, 0.019266207, 0.7157409) +bones/0/position = Vector3(1.2535723, 103.23205, 0) +bones/2/position = Vector3(1.2545489, -1.2283401, -63.87065) +bones/2/rotation = Quaternion(-0.68592405, 0.04377775, -0.051641874, 0.724517) bones/3/position = Vector3(1.8626451e-08, 3.9624305, -0.274297) -bones/3/rotation = Quaternion(-0.022506908, 0.017493227, -0.0074128713, 0.99956536) +bones/3/rotation = Quaternion(-0.022852536, -0.012121664, 0.0041041635, 0.99965584) bones/4/position = Vector3(5.9604645e-08, 14.123348, 0.2644268) -bones/4/rotation = Quaternion(-0.00365946, 0.03815137, -0.014585497, 0.99915886) +bones/4/rotation = Quaternion(-0.004333934, -0.027048457, 0.008698374, 0.99958694) bones/5/position = Vector3(3.7252903e-08, 11.404536, 0.106110305) -bones/5/rotation = Quaternion(-0.0036594612, 0.038151365, -0.014585488, 0.99915886) +bones/5/rotation = Quaternion(-0.0043339357, -0.027048472, 0.008698381, 0.99958694) bones/6/position = Vector3(2.9802322e-08, 9.946667, 1.6090326e-08) -bones/6/rotation = Quaternion(0.031101733, -0.016018406, 0.03743902, 0.9986864) +bones/6/rotation = Quaternion(0.01833006, 0.009223348, -0.022252144, 0.99954194) bones/7/position = Vector3(3.1292439e-07, 8.579114, 0.11416777) -bones/7/rotation = Quaternion(0.007968462, -0.023749013, 0.017739752, 0.9995287) +bones/7/rotation = Quaternion(0.012213917, 0.0008427718, 0.018853437, 0.99974734) bones/8/position = Vector3(1.8626451e-09, 25.089184, 0.33387405) bones/9/position = Vector3(4.22409, 8.898366, -0.056614783) -bones/9/rotation = Quaternion(0.67403185, 0.32335418, -0.54488075, 0.3797739) +bones/9/rotation = Quaternion(0.6974001, 0.2956288, -0.5221589, 0.39190146) bones/10/position = Vector3(7.763405e-07, 8.86101, -1.885943e-05) -bones/10/rotation = Quaternion(0.3653002, -0.028586289, -0.27500978, 0.8888802) +bones/10/rotation = Quaternion(0.26628703, -0.06642532, 0.008976073, 0.9615604) bones/11/position = Vector3(-6.736064e-08, 18.975187, -5.359281e-06) -bones/11/rotation = Quaternion(0.053082827, 0.17740138, 0.31139585, 0.9320641) +bones/11/rotation = Quaternion(0.07033256, 0.12871316, 0.46235967, 0.8744769) bones/12/position = Vector3(2.0505329e-06, 19.896036, 4.198435e-06) -bones/12/rotation = Quaternion(-0.02275733, 0.23029867, -0.11381663, 0.96617305) +bones/12/rotation = Quaternion(-0.16744098, 0.1057004, 0.06551589, 0.97800744) bones/13/position = Vector3(-2.0888743, 2.1412597, 1.2094326) bones/13/rotation = Quaternion(0.25766087, -0.0057431525, 0.24790713, 0.93387365) bones/14/position = Vector3(-0.3297696, 2.5601492, 5.6111962e-06) @@ -209,93 +208,93 @@ bones/15/position = Vector3(0.07692051, 2.7271638, -7.698024e-07) bones/15/rotation = Quaternion(0.041175473, -5.169663e-07, -3.3207877e-07, 0.99915195) bones/16/position = Vector3(0.25285125, 2.2376482, -2.5033949e-06) bones/17/position = Vector3(-2.5860305, 6.9422946, 0.029643927) -bones/17/rotation = Quaternion(0.35217047, 0.017903585, 0.089692846, 0.9314562) +bones/17/rotation = Quaternion(0.34374678, 0.015888449, 0.085352995, 0.9350405) bones/18/position = Vector3(0.0010065138, 2.844871, 2.6222544e-05) -bones/18/rotation = Quaternion(0.5128366, -0.009204624, 0.048090808, 0.8570888) +bones/18/rotation = Quaternion(0.57630825, -0.010742382, 0.057439517, 0.8151404) bones/19/position = Vector3(-0.001300633, 2.6654923, -3.370296e-06) bones/19/rotation = Quaternion(0.0067229928, -1.8172469e-07, -1.12402185e-08, 0.9999774) bones/20/position = Vector3(0.00029665232, 2.2974284, 2.6011842e-06) bones/21/position = Vector3(-0.81500757, 6.8271494, -0.11008961) -bones/21/rotation = Quaternion(0.47678298, -0.024179399, 0.09396766, 0.8736494) +bones/21/rotation = Quaternion(0.4686701, -0.026470345, 0.09011306, 0.87836635) bones/22/position = Vector3(-0.011725575, 3.256784, 9.871595e-06) -bones/22/rotation = Quaternion(0.6923176, -0.007814516, 0.076714024, 0.7174611) +bones/22/rotation = Quaternion(0.7447584, -0.008458963, 0.08384082, 0.66199255) bones/23/position = Vector3(-0.00070961565, 3.1778917, -4.440292e-06) bones/23/rotation = Quaternion(0.05807299, -2.1569534e-08, -4.8931874e-08, 0.99831235) bones/24/position = Vector3(0.012437165, 2.6951318, 2.2368273e-05) bones/25/position = Vector3(0.89882326, 6.7787366, -0.023027958) -bones/25/rotation = Quaternion(0.46876705, -0.10649501, 0.0048512574, 0.8768654) +bones/25/rotation = Quaternion(0.46021903, -0.10865909, 0.0012826431, 0.88113) bones/26/position = Vector3(-0.0040293336, 2.958041, 1.3685599e-05) -bones/26/rotation = Quaternion(0.7013153, 0.002825051, 0.061101884, 0.7102221) +bones/26/rotation = Quaternion(0.75350595, 0.003054577, 0.06509644, 0.65420324) bones/27/position = Vector3(0.0024927258, 2.756927, -1.8636636e-05) bones/27/rotation = Quaternion(-0.0033205294, 3.9059813e-08, 6.5682637e-09, 0.9999945) bones/28/position = Vector3(0.0015397072, 2.3345788, 1.1771219e-05) bones/29/position = Vector3(2.5022223, 6.3907866, 0.08744741) -bones/29/rotation = Quaternion(0.56450063, -0.15266693, -0.0018035976, 0.8111898) +bones/29/rotation = Quaternion(0.5563202, -0.15497696, -0.0049168295, 0.81637365) bones/30/position = Vector3(0.0032016933, 2.6237173, 5.5511973e-06) -bones/30/rotation = Quaternion(0.6262513, 0.022716032, 0.058525927, 0.7770894) +bones/30/rotation = Quaternion(0.6839778, 0.025319714, 0.05863921, 0.72670126) bones/31/position = Vector3(0.003878951, 2.1320877, -1.2886679e-06) bones/31/rotation = Quaternion(-0.06925962, -1.0360488e-07, -7.0190005e-08, 0.9975987) bones/32/position = Vector3(-0.0070759356, 1.7932303, -8.8289596e-07) bones/33/position = Vector3(-4.2240915, 8.897269, -0.030230172) -bones/33/rotation = Quaternion(0.64940715, -0.35115576, 0.552351, 0.38712853) +bones/33/rotation = Quaternion(0.6396871, -0.34111822, 0.60846674, 0.32281098) bones/34/position = Vector3(9.327891e-07, 8.8610115, -9.847447e-06) -bones/34/rotation = Quaternion(0.37322992, 0.051175877, -0.014639804, 0.92621064) +bones/34/rotation = Quaternion(0.3631728, -0.04426816, 0.26242447, 0.892905) bones/35/position = Vector3(6.476337e-07, 18.973557, 5.8403616e-06) -bones/35/rotation = Quaternion(-2.38223e-05, -0.0878173, -0.45667896, 0.8852867) +bones/35/rotation = Quaternion(0.020210672, -0.1976225, -0.21386963, 0.95645) bones/36/position = Vector3(-7.630494e-08, 19.89834, -1.8180976e-06) -bones/36/rotation = Quaternion(-0.22069603, -0.15216982, -0.028448751, 0.9629787) +bones/36/rotation = Quaternion(-0.0013729627, -0.10906849, 0.07843006, 0.9909344) bones/37/position = Vector3(2.0620086, 2.1477072, 1.2410417) -bones/37/rotation = Quaternion(0.21391132, 0.020952638, -0.2679689, 0.93914616) +bones/37/rotation = Quaternion(0.2022776, 0.03663972, -0.31487894, 0.9266028) bones/38/position = Vector3(0.2744484, 2.5658755, 3.7584634e-06) -bones/38/rotation = Quaternion(0.064052425, -0.18935232, 0.09533193, 0.9751691) +bones/38/rotation = Quaternion(0.10343577, -0.19018154, 0.15068975, 0.9645852) bones/39/position = Vector3(-0.076725245, 2.730221, -7.234994e-06) bones/39/rotation = Quaternion(0.037325032, -2.1781963e-08, 1.19075e-07, 0.99930316) bones/40/position = Vector3(-0.19772077, 2.2442596, 9.685756e-06) bones/41/position = Vector3(2.5699375, 7.0537868, 0.05093465) -bones/41/rotation = Quaternion(0.45433038, 0.007974177, -0.040324483, 0.8898841) +bones/41/rotation = Quaternion(0.33546335, 0.008294326, -0.03227234, 0.9414638) bones/42/position = Vector3(-0.0015108623, 2.816315, -9.529522e-06) -bones/42/rotation = Quaternion(0.6120771, 0.028411472, -0.047977913, 0.78882915) +bones/42/rotation = Quaternion(0.5038074, 0.025462631, -0.03289526, 0.86281383) bones/43/position = Vector3(0.0011758618, 2.6396425, 2.472788e-06) bones/43/rotation = Quaternion(0.0026853334, 3.311302e-08, -5.8677845e-08, 0.9999965) bones/44/position = Vector3(0.00033191964, 2.2415001, 1.3194513e-06) bones/45/position = Vector3(0.76549155, 7.018211, -0.09038047) -bones/45/rotation = Quaternion(0.483478, 0.036460996, -0.036219023, 0.87384653) +bones/45/rotation = Quaternion(0.365633, 0.035192948, -0.020985998, 0.92985666) bones/46/position = Vector3(0.008488461, 3.3401706, -6.017696e-06) -bones/46/rotation = Quaternion(0.701871, 0.04011571, -0.05796006, 0.7088077) +bones/46/rotation = Quaternion(0.60296637, 0.037562832, -0.043432355, 0.79569733) bones/47/position = Vector3(-0.007900611, 3.0566626, 5.4270527e-06) bones/47/rotation = Quaternion(-0.027461762, -2.0760188e-08, 5.6872928e-08, 0.9996229) bones/48/position = Vector3(-0.00058989227, 2.63951, 9.457464e-06) bones/49/position = Vector3(-0.8923034, 6.9110794, -0.12160769) -bones/49/rotation = Quaternion(0.48708817, 0.03278609, -0.015544657, 0.8725985) +bones/49/rotation = Quaternion(0.373129, 0.027513513, 0.0016994111, 0.92736983) bones/50/position = Vector3(-0.00297606, 2.923956, 1.7109673e-05) -bones/50/rotation = Quaternion(0.6931497, -0.019576456, -0.06891241, 0.71722454) +bones/50/rotation = Quaternion(0.5844741, -0.018550195, -0.061117128, 0.80889475) bones/51/position = Vector3(0.0026345253, 2.717951, -5.427028e-06) bones/51/rotation = Quaternion(0.009096339, 7.025756e-08, 2.6579988e-08, 0.99995863) bones/52/position = Vector3(0.0003426671, 2.379634, 1.4747493e-06) bones/53/position = Vector3(-2.4431183, 6.453577, 0.12551774) -bones/53/rotation = Quaternion(0.44882435, 0.025137398, -0.033032093, 0.89265347) +bones/53/rotation = Quaternion(0.33751208, 0.021386249, -0.009726644, 0.941028) bones/54/position = Vector3(-0.0026362836, 2.6278691, 4.2827646e-06) -bones/54/rotation = Quaternion(0.7472647, -0.045266245, -0.09292602, 0.65643823) +bones/54/rotation = Quaternion(0.64713013, -0.039810352, -0.090106204, 0.75598854) bones/55/position = Vector3(-0.001860708, 2.1224687, 9.940322e-07) bones/55/rotation = Quaternion(-0.03619139, -1.1229469e-07, 2.121775e-08, 0.9993449) bones/56/position = Vector3(0.004502952, 1.7919822, 1.2924895e-05) bones/57/position = Vector3(7.557004, -4.826265, 0.30053553) -bones/57/rotation = Quaternion(-0.04979198, -0.3562142, -0.93288946, 0.018696664) +bones/57/rotation = Quaternion(-0.08986163, 0.021308435, -0.99325967, 0.070043266) bones/58/position = Vector3(-0.124621816, 24.06574, 0.10470339) -bones/58/rotation = Quaternion(-0.30548102, 0.032796834, -0.01660958, 0.9514882) +bones/58/rotation = Quaternion(-0.4013793, 0.12247081, -0.016882984, 0.9075299) bones/59/position = Vector3(-0.0060171685, 33.063114, 0.00394835) -bones/59/rotation = Quaternion(0.44427872, 0.000708564, 0.0098030325, 0.8958346) +bones/59/rotation = Quaternion(0.43592802, 0.023901237, 0.044110287, 0.89858204) bones/60/position = Vector3(-0.0052775713, 12.893309, -0.5155027) -bones/60/rotation = Quaternion(0.31359768, -0.055260643, 0.025034118, 0.94761604) +bones/60/rotation = Quaternion(0.5547358, -0.05625008, 0.006090132, 0.83010066) bones/61/position = Vector3(0.014227723, 6.420835, 0.007887725) bones/62/position = Vector3(-7.557004, -4.826261, 0.30053535) -bones/62/rotation = Quaternion(-0.10350199, -0.08600675, 0.989418, 0.0542423) +bones/62/rotation = Quaternion(-0.0453176, 0.37578616, 0.92547935, 0.014799355) bones/63/position = Vector3(0.12476807, 24.070103, -0.14491707) -bones/63/rotation = Quaternion(-0.32747734, -0.0674623, 0.0130414665, 0.9423574) +bones/63/rotation = Quaternion(-0.27188188, -0.00034630176, 0.0028924432, 0.96232617) bones/64/position = Vector3(0.0060205855, 33.063133, 0.004499323) -bones/64/rotation = Quaternion(0.26777777, -0.01583679, -0.0035161127, 0.9633441) +bones/64/rotation = Quaternion(0.4376588, -0.0021246495, 3.749458e-05, 0.8991387) bones/65/position = Vector3(0.005378528, 12.718271, -0.52236915) -bones/65/rotation = Quaternion(0.6911166, 0.033012606, 0.0070720776, 0.72195446) +bones/65/rotation = Quaternion(0.34835225, 0.017514596, -0.0044682953, 0.9371894) bones/66/position = Vector3(-0.014239848, 6.412128, 0.0079107955) [node name="AnimationPlayer" parent="Characters/MixamoAmyWalkRunSynced" index="1" unique_id=945472897] diff --git a/demo/synced_blend_tree_walk_limp.tres b/demo/synced_blend_tree_walk_limp.tres index 7cbdee2..b23c127 100644 --- a/demo/synced_blend_tree_walk_limp.tres +++ b/demo/synced_blend_tree_walk_limp.tres @@ -16,11 +16,10 @@ graph_offset = Vector2(-1300, -40) animation = &"animation_library/Walk-InPlace" [resource] -nodes/Output/position = null nodes/BLTAnimationNodeBlend2/node = SubResource("BLTAnimationNodeBlend2_bvt3d") -nodes/BLTAnimationNodeBlend2/position = null +nodes/BLTAnimationNodeBlend2/graph_offset = Vector2(-600, 180) "nodes/BLTAnimationNodeSampler 1/node" = SubResource("BLTAnimationNodeSampler_sntl5") -"nodes/BLTAnimationNodeSampler 1/position" = null +"nodes/BLTAnimationNodeSampler 1/graph_offset" = Vector2(-1200, 560) nodes/BLTAnimationNodeSampler/node = SubResource("BLTAnimationNodeSampler_n4m28") -nodes/BLTAnimationNodeSampler/position = null +nodes/BLTAnimationNodeSampler/graph_offset = Vector2(-1300, -40) node_connections = ["BLTAnimationNodeBlend2", 0, "BLTAnimationNodeSampler", "BLTAnimationNodeBlend2", 1, "BLTAnimationNodeSampler 1", "Output", 0, "BLTAnimationNodeBlend2"]