Skip to content

Commit

Permalink
+ make properties of FEM result object read-only for property editor
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Dec 13, 2015
1 parent f26844e commit 1a8c643
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Mod/Fem/App/FemResultObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ FemResultObject::FemResultObject()
ADD_PROPERTY_TYPE(Mesh,(0), "General",Prop_None,"Link to the corresponding mesh");
ADD_PROPERTY_TYPE(Eigenmode,(0), "Fem",Prop_None,"Number of the eigenmode");
ADD_PROPERTY_TYPE(EigenmodeFrequency,(0), "Fem",Prop_None,"Frequency of the eigenmode");

// make read-only for property editor
NodeNumbers.StatusBits.set(2, true);
DisplacementVectors.StatusBits.set(2, true);
DisplacementLengths.StatusBits.set(2, true);
StressValues.StatusBits.set(2, true);
Eigenmode.StatusBits.set(2, true);
EigenmodeFrequency.StatusBits.set(2, true);
}

FemResultObject::~FemResultObject()
Expand Down

0 comments on commit 1a8c643

Please sign in to comment.