Skip to content

Commit

Permalink
blender: Get version from blender instead of hardcoding
Browse files Browse the repository at this point in the history
  • Loading branch information
vkoskiv committed Jun 18, 2024
1 parent 0b7997c commit 9e5eab5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ lib: $(BIN_lib)

pylib: bindings/cray_wrap.so

BLENDER_ROOT=$(HOME)/.config/blender/4.1
BLENDER_VERSION=$(shell blender --version | head -n1 | cut -d ' ' -f 2 | cut -c 1-3)
BLENDER_ROOT=$(HOME)/.config/blender/$(BLENDER_VERSION)

blsync: bindings/cray_wrap.so $(SRCS_python)
mkdir -p $(BLENDER_ROOT)/scripts/addons/c_ray
Expand Down

0 comments on commit 9e5eab5

Please sign in to comment.