mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Fix hitboxes not invalidated in TestRuntimeObject (#2534)
Only show in developer changelog
This commit is contained in:
@@ -27,11 +27,13 @@ gdjs.TestRuntimeObject = class TestRuntimeObject extends gdjs.RuntimeObject {
|
|||||||
setCustomWidthAndHeight(customWidth, customHeight) {
|
setCustomWidthAndHeight(customWidth, customHeight) {
|
||||||
this._customWidth = customWidth;
|
this._customWidth = customWidth;
|
||||||
this._customHeight = customHeight;
|
this._customHeight = customHeight;
|
||||||
|
this.hitBoxesDirty = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
setCustomCenter(customCenterX, customCenterY) {
|
setCustomCenter(customCenterX, customCenterY) {
|
||||||
this._customCenterX = customCenterX;
|
this._customCenterX = customCenterX;
|
||||||
this._customCenterY = customCenterY;
|
this._customCenterY = customCenterY;
|
||||||
|
this.hitBoxesDirty = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
getRendererObject() {
|
getRendererObject() {
|
||||||
|
Reference in New Issue
Block a user