Skip to content

Commit

Permalink
SuStringRef Surfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
moethu committed Mar 21, 2017
1 parent 02d0fed commit 2482f7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SketchUp/SketchUpNET/SketchUpNET/Surface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,14 @@ namespace SketchUpNET
SUMaterialRef mback = SU_INVALID;
SUFaceGetBackMaterial(face, &mback);
SUStringRef mbackNameRef = SU_INVALID;
SUStringCreate(&mbackNameRef);
SUMaterialGetName(mback, &mbackNameRef);
System::String^ mbackName = SketchUpNET::Utilities::GetString(mbackNameRef);

SUMaterialRef minner = SU_INVALID;
SUFaceGetFrontMaterial(face, &minner);
SUStringRef minnerNameRef = SU_INVALID;
SUStringCreate(&minnerNameRef);
SUMaterialGetName(minner, &minnerNameRef);

System::String^ minnerName = SketchUpNET::Utilities::GetString(minnerNameRef);
Expand Down

0 comments on commit 2482f7e

Please sign in to comment.