]> OCCT Git - occt.git/commitdiff
0028090: Configuration - DRAWHOME environment variable missing in CMake
authorapn <apn@opencascade.com>
Thu, 15 Mar 2018 09:12:10 +0000 (12:12 +0300)
committerbugmaster <bugmaster@opencascade.com>
Tue, 20 Mar 2018 12:14:05 +0000 (15:14 +0300)
Replace variable DRAWHOME by CSF_OCCTResourcePath for successfully running DFBrowse command in Draw launched from Visual Studio.
Added missed icons of folders, attributes and named shapes used in DFOpenImage command in src\DrawResources\dftree.tcl.

src/DrawResources/dfb_attribns.gif [new file with mode: 0644]
src/DrawResources/dfb_attribute.gif [new file with mode: 0644]
src/DrawResources/dfb_folder.gif [new file with mode: 0644]
src/DrawResources/dftree.tcl

diff --git a/src/DrawResources/dfb_attribns.gif b/src/DrawResources/dfb_attribns.gif
new file mode 100644 (file)
index 0000000..0676faa
Binary files /dev/null and b/src/DrawResources/dfb_attribns.gif differ
diff --git a/src/DrawResources/dfb_attribute.gif b/src/DrawResources/dfb_attribute.gif
new file mode 100644 (file)
index 0000000..abf8e5b
Binary files /dev/null and b/src/DrawResources/dfb_attribute.gif differ
diff --git a/src/DrawResources/dfb_folder.gif b/src/DrawResources/dfb_folder.gif
new file mode 100644 (file)
index 0000000..0863cac
Binary files /dev/null and b/src/DrawResources/dfb_folder.gif differ
index 8a95c81352bcf55d814d6b4f2c798c71e8254549..1481e74e0eac86a0d7f32821a48c2f2a125f5450 100755 (executable)
@@ -368,7 +368,7 @@ proc DFOpenImage { img } {
 
   global env
 
-  if {[catch "image create photo -file $env(DRAWHOME)/$img" ret]} {
+  if {[catch "image create photo -file $env(CSF_OCCTResourcePath)/DrawResources/$img" ret]} {
     return ""
   }
   return $ret