Skip to content

Commit 23cb86a

Browse files
author
Joachim Meyer
committed
IDE build failed because of "'LayerProp::layerID' : only static const integral data members can be initialized within a class" it is fixing this
1 parent 2cca680 commit 23cb86a

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)