add ObjectBase::<visible>ForAllPresets methods
This commit is contained in:
@@ -211,6 +211,12 @@ void ObjectBase::setVisible(bool v) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void ObjectBase::setVisibleForAllPresets(bool v) {
|
||||||
|
for (auto & p: presets)
|
||||||
|
p.visible = v;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void ObjectBase::setReceiveShadows(bool on) {
|
void ObjectBase::setReceiveShadows(bool on) {
|
||||||
currentPreset().receive_shadow = on;
|
currentPreset().receive_shadow = on;
|
||||||
setObjectsChanged();
|
setObjectsChanged();
|
||||||
|
|||||||
@@ -82,6 +82,10 @@ public:
|
|||||||
void setHidden(bool v) { setVisible(!v); }
|
void setHidden(bool v) { setVisible(!v); }
|
||||||
void show() { setVisible(true); }
|
void show() { setVisible(true); }
|
||||||
void hide() { setVisible(false); }
|
void hide() { setVisible(false); }
|
||||||
|
void setVisibleForAllPresets(bool v);
|
||||||
|
void setHiddenForAllPresets(bool v) { setVisibleForAllPresets(!v); }
|
||||||
|
void showForAllPresets() { setVisibleForAllPresets(true); }
|
||||||
|
void hideForAllPresets() { setVisibleForAllPresets(false); }
|
||||||
|
|
||||||
bool isReceiveShadows() const { return currentPreset().receive_shadow; }
|
bool isReceiveShadows() const { return currentPreset().receive_shadow; }
|
||||||
bool isCastShadows() const { return currentPreset().cast_shadow; }
|
bool isCastShadows() const { return currentPreset().cast_shadow; }
|
||||||
|
|||||||
Reference in New Issue
Block a user