mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-01-12 23:37:10 +01:00
pose vec4
This commit is contained in:
parent
c4aba3af09
commit
3c251b2cd8
4 changed files with 16 additions and 10 deletions
|
@ -153,7 +153,7 @@ function __Bone(_parent = noone, _distance = 0, _direction = 0, _angle = 0, _len
|
|||
|
||||
} else if(_hover != noone && _hover[0].ID == self.ID && _hover[1] == 2) {
|
||||
draw_set_color(c_white);
|
||||
draw_set_alpha(1 * _alpha);
|
||||
draw_set_alpha(0.75 * _alpha);
|
||||
|
||||
} else {
|
||||
draw_set_color(COLORS._main_accent);
|
||||
|
|
|
@ -157,12 +157,11 @@ function Node_Armature(_x, _y, _group = noone) : Node(_x, _y, _group) constructo
|
|||
#endregion
|
||||
|
||||
tools = [
|
||||
new NodeTool( "Transform", THEME.bone_tool_move ),
|
||||
new NodeTool( "Add bones", THEME.bone_tool_add ),
|
||||
new NodeTool( "Remove bones", THEME.bone_tool_remove ),
|
||||
new NodeTool( "Detach bones", THEME.bone_tool_detach ),
|
||||
new NodeTool( "IK", THEME.bone_tool_IK ),
|
||||
new NodeTool( "Mirror bones", THEME.bone_tool_mirror ),
|
||||
new NodeTool( "Transform", THEME.bone_tool_move ),
|
||||
new NodeTool( [ "Add bones", "Mirror bones"], [ THEME.bone_tool_add, THEME.bone_tool_mirror ]),
|
||||
new NodeTool( "Remove bones", THEME.bone_tool_remove ),
|
||||
new NodeTool( "Detach bones", THEME.bone_tool_detach ),
|
||||
new NodeTool( "IK", THEME.bone_tool_IK ),
|
||||
];
|
||||
|
||||
anchor_selecting = noone;
|
||||
|
|
|
@ -157,8 +157,15 @@ function Node_Armature_Pose(_x, _y, _group = noone) : Node(_x, _y, _group) const
|
|||
|
||||
gpu_set_texfilter(false);
|
||||
|
||||
if(posing_input.setValue(val))
|
||||
UNDO_HOLDING = true;
|
||||
if(posing_input.value_from == noone) {
|
||||
if(posing_input.setValue(val)) UNDO_HOLDING = true;
|
||||
|
||||
} else if(is(posing_input.value_from.node, Node_Vector4)) {
|
||||
var _nod = posing_input.value_from.node;
|
||||
|
||||
for( var i = 0; i < 4; i++ )
|
||||
if(_nod.inputs[i].setValue(val[i])) UNDO_HOLDING = true;
|
||||
}
|
||||
|
||||
if(mouse_release(mb_left)) {
|
||||
posing_bone = noone;
|
||||
|
|
|
@ -681,7 +681,7 @@ function Node(_x, _y, _group = noone) : __Node_Base(_x, _y) constructor {
|
|||
var _ou = preview_channel >= 0 && preview_channel < array_length(outputs) && outputs[preview_channel].type == VALUE_TYPE.surface;
|
||||
var _prev_surf = previewable && preview_draw && (_ps || _ou);
|
||||
|
||||
junction_draw_hei_y = SHOW_PARAM? 32 : 16;
|
||||
junction_draw_hei_y = SHOW_PARAM? 32 : 16;
|
||||
junction_draw_pad_y = SHOW_PARAM? 128 : 24;
|
||||
|
||||
var _hi, _ho;
|
||||
|
|
Loading…
Reference in a new issue