mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
Dont do init transform if you dont need to. (#2495)
This commit is contained in:
parent
6118a5f704
commit
07f299434d
@ -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