mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
Dont do init transform if you dont need to. (#2495)
This commit is contained in:
parent
1274c9ca84
commit
a73d0bc40d
@ -232,9 +232,11 @@ SpineConstant::BoneMode SpineBoneNode::get_bone_mode() {
|
||||
}
|
||||
|
||||
void SpineBoneNode::set_bone_mode(SpineConstant::BoneMode _bone_mode) {
|
||||
bone_mode = _bone_mode;
|
||||
SpineSprite *sprite = find_parent_sprite();
|
||||
init_transform(sprite);
|
||||
if (bone_mode != _bone_mode) {
|
||||
bone_mode = _bone_mode;
|
||||
SpineSprite *sprite = find_parent_sprite();
|
||||
init_transform(sprite);
|
||||
}
|
||||
}
|
||||
|
||||
void SpineBoneNode::set_debug_thickness(float _thickness) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user