Skip to content

Commit 97f8571

Browse files
committed
Merge pull request #473 from fodinabor/IDEpropsFix
IDE build failed because of "'LayerProp::layerID' : only static const in...
2 parents 33b09f0 + 23cb86a commit 97f8571

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

IDE/Contents/Include/PolycodeProps.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ class LayerProp : public PropProp {
243243

244244
UIImageButton *removeLayerButton;
245245

246-
unsigned char layerID = 0;
246+
unsigned char layerID;
247247

248248
UIRect *bgRect;
249249
};

IDE/Contents/Source/PolycodeProps.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,8 @@ void RemovableStringProp::handleEvent(Event *event) {
574574
}
575575

576576
LayerProp::LayerProp(SceneEntityInstance *instance, SceneEntityInstanceLayer *layer) : PropProp("", "Layer") {
577-
577+
layerID = 0;
578+
578579
bgRect = new UIRect(1.0, 1.0);
579580
bgRect->color.setColorHexFromString(CoreServices::getInstance()->getConfig()->getStringValue("Polycode", "uiHeaderBgColor"));
580581

0 commit comments

Comments
 (0)