File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ void RenderedTarget::loadProperties()
52
52
// Visibility
53
53
m_visible = sprite->visible ();
54
54
55
+ m_size = sprite->size () / 100 ;
56
+ updateCostumeData ();
57
+
55
58
if (m_visible) {
56
59
// Direction
57
60
switch (sprite->rotationStyle ()) {
@@ -75,8 +78,6 @@ void RenderedTarget::loadProperties()
75
78
}
76
79
77
80
// Coordinates
78
- m_size = sprite->size () / 100 ;
79
- updateCostumeData ();
80
81
double clampedSize = std::min (m_size, m_maxSize);
81
82
m_x = static_cast <double >(m_engine->stageWidth ()) / 2 + sprite->x () - m_costume->rotationCenterX () * clampedSize / m_costume->bitmapResolution () * (m_newMirrorHorizontally ? -1 : 1 );
82
83
m_y = static_cast <double >(m_engine->stageHeight ()) / 2 - sprite->y () - m_costume->rotationCenterY () * clampedSize / m_costume->bitmapResolution ();
You can’t perform that action at this time.
0 commit comments