From: apn Date: Thu, 15 Mar 2018 09:12:10 +0000 (+0300) Subject: 0028090: Configuration - DRAWHOME environment variable missing in CMake X-Git-Tag: V7_3_0_beta~47 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=3c9f082bb954ab0d49e380f0fab0976a1a3289ee;p=occt.git 0028090: Configuration - DRAWHOME environment variable missing in CMake 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. --- diff --git a/src/DrawResources/dfb_attribns.gif b/src/DrawResources/dfb_attribns.gif new file mode 100644 index 0000000000..0676faaea7 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 index 0000000000..abf8e5b96a 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 index 0000000000..0863cac85d Binary files /dev/null and b/src/DrawResources/dfb_folder.gif differ diff --git a/src/DrawResources/dftree.tcl b/src/DrawResources/dftree.tcl index 8a95c81352..1481e74e0e 100755 --- a/src/DrawResources/dftree.tcl +++ b/src/DrawResources/dftree.tcl @@ -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