full support of ObjectBase:: isReceiveShadows, isCastShadows, isAcceptLight and isAcceptFog

This commit is contained in:
2023-02-12 22:49:38 +03:00
parent e3389bcc20
commit c8dcd5e9c0
10 changed files with 84 additions and 40 deletions

View File

@@ -84,7 +84,10 @@ public:
bool isReceiveShadows() const { return rec_shadow; }
bool isCastShadows() const { return cast_shadow; }
void setReceiveShadows(bool on) { rec_shadow = on; }
void setReceiveShadows(bool on) {
rec_shadow = on;
setObjectsChanged();
}
void setCastShadows(bool on);
void move(const QVector3D & dv) {
@@ -271,10 +274,16 @@ public:
QGenericMatrix<3, 2, float> textureGLMatrix() const;
bool isAcceptLight() const { return accept_light; }
void setAcceptLight(bool yes) { accept_light = yes; }
void setAcceptLight(bool yes) {
accept_light = yes;
setObjectsChanged();
}
bool isAcceptFog() const { return accept_fog; }
void setAcceptFog(bool yes) { accept_fog = yes; }
void setAcceptFog(bool yes) {
accept_fog = yes;
setObjectsChanged();
}
bool isSelected(bool check_parents = false) const;
void setSelected(bool yes);