Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release/datafiles/blender_icons_update.py')
-rwxr-xr-xrelease/datafiles/blender_icons_update.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/release/datafiles/blender_icons_update.py b/release/datafiles/blender_icons_update.py
new file mode 100755
index 00000000000..6f8f366544c
--- /dev/null
+++ b/release/datafiles/blender_icons_update.py
@@ -0,0 +1,12 @@
+#!/usr/bin/env python3
+
+# This script updates icons from the SVG file
+import os
+
+BASEDIR = os.path.abspath(os.path.dirname(__file__)) + os.sep
+
+cmd = 'inkscape "%sblender_icons.svg" --export-dpi=90 --without-gui --export-png="%sblender_icons16.png"' % (BASEDIR, BASEDIR)
+os.system(cmd)
+cmd = 'inkscape "%sblender_icons.svg" --export-dpi=180 --without-gui --export-png="%sblender_icons32.png"' % (BASEDIR, BASEDIR)
+os.system(cmd)
+