@@ -3897,7 +3897,7 @@ public boolean isNoScale() {
38973897 return o .get ();
38983898 return false ;
38993899 }
3900-
3900+
39013901 // IsAlwaysShow
39023902 public CSG setIsAlwaysShow (boolean Hide ) {
39033903 getStorage ().set ("isAlwaysShow" , Hide );
@@ -3923,7 +3923,29 @@ public boolean isHole() {
39233923 return o .get ();
39243924 return false ;
39253925 }
3926-
3926+
3927+ public Optional <String > getMaterialType (){
3928+ return getStorage ().getValue ("materialType" );
3929+ }
3930+ public void setMaterialType (String type ){
3931+ getStorage ().set ("materialType" ,type );
3932+ getStorage ().delete ("material" );
3933+ getStorage ().delete ("materialInfillPercent" );
3934+
3935+ }
3936+ public Optional <String > getMaterial (){
3937+ return getStorage ().getValue ("material" );
3938+ }
3939+ public void setMaterial (String type ){
3940+ getStorage ().set ("material" ,type );
3941+ }
3942+ public Optional <Double > getMateriaInfillPercent (){
3943+ return getStorage ().getValue ("materialInfillPercent" );
3944+ }
3945+ public void setMaterialInfillPercent (double type ){
3946+ getStorage ().set ("materialInfillPercent" ,type );
3947+ }
3948+
39273949 private void syncCadoodleCatagories (CSG dyingCSG ) {
39283950 setIsHole (dyingCSG .isHole ());
39293951 setIsHide (dyingCSG .isHide ());
@@ -3933,6 +3955,10 @@ private void syncCadoodleCatagories(CSG dyingCSG) {
39333955 setIsWireFrame (dyingCSG .isWireFrame ());
39343956 setColor (dyingCSG .getColor ());
39353957 setNoScale (dyingCSG .isNoScale ());
3958+ setMaterial (getMaterial ().get ());
3959+ setMaterialInfillPercent (getMateriaInfillPercent ().get ());
3960+ setMaterialType (getMaterialType ().get ());
3961+
39363962 }
39373963
39383964 public void setDefaultCadoodleCatagories () {
0 commit comments