Skip to content

Commit

Permalink
0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico-Duduf committed Oct 11, 2022
1 parent ed12416 commit e9dada6
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bluik/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ def create_layer(context, name, width, height, containing_group=None):
move_to_group( plane, containing_group)

# Location and rotation
plane.rotation_euler.x = -pi/2
plane.rotation_euler.y = pi
plane.rotation_euler.x = pi/2
plane.rotation_euler.y = 0
plane.rotation_euler.z = 0
plane.lock_location[0] = False
plane.lock_location[1] = True
Expand Down
38 changes: 38 additions & 0 deletions tools/build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
@echo off

:: The path to the build folder
SET "build_path=build"
:: 7zip CLI path
SET "seven_zip=C:\Program Files\7-Zip"

:: The repo and dependencies
SET repo_path=%~dp0..
SET "bluik_path=%repo_path%\bluik"
SET "dublf_path=%repo_path%\..\DuBLF\dublf"
SET "oco_path=%repo_path%\..\..\OCO\ocopy"

echo Building: %repo_path%
echo To: %build_path%

:: remove previous version
for /r "%build_path%" /d %%a IN (*) do IF /i "%%~nxa"=="bluik" rd /s /q "%%a"
rd "%build_path%\bluik"

:: copy main files
echo Copying: "%bluik_path%\"
md "%build_path%\bluik"
for /f %%a IN ('dir /b "%bluik_path%\*.py"') do copy "%bluik_path%\%%a" "%build_path%\bluik\%%a"

:: copy dublf
echo Copying: "%dublf_path%\"
md "%build_path%\bluik\dublf"
for /f %%a IN ('dir /b "%dublf_path%\*.py"') do copy "%dublf_path%\%%a" "%build_path%\bluik\dublf\%%a"

:: copy oco
echo Copying: "%oco_path%\"
md "%build_path%\bluik\ocopy"
for /f %%a IN ('dir /b "%oco_path%\*.py"') do copy "%oco_path%\%%a" "%build_path%\bluik\ocopy\%%a"

:: zip
del "%build_path%\bluik.zip"
"%seven_zip%\7z.exe" a "%build_path%\bluik.zip" ".\%build_path%\*"

0 comments on commit e9dada6

Please sign in to comment.