Translate cartesian graphs and fork Geometry Script patch
This commit is contained in:
parent
9229884f19
commit
d85380909d
15 changed files with 973 additions and 201 deletions
31
tools/setup_geometry_script_clone.ps1
Normal file
31
tools/setup_geometry_script_clone.ps1
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
param(
|
||||
[string]$RepoUrl = "https://github.com/carson-katri/geometry-script.git",
|
||||
[string]$Branch = "vibegeometry/blender-5-nested-tree-groups"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$root = Resolve-Path (Join-Path $PSScriptRoot "..")
|
||||
$target = Join-Path $root "external\geometry-script"
|
||||
$patch = Join-Path $root "patches\geometry-script\0001-fix-nested-tree-group-references-on-blender-4.patch"
|
||||
|
||||
if (!(Test-Path $target)) {
|
||||
New-Item -ItemType Directory -Force (Split-Path $target) | Out-Null
|
||||
git clone $RepoUrl $target
|
||||
}
|
||||
|
||||
git -C $target fetch origin
|
||||
|
||||
$branches = git -C $target branch --list $Branch
|
||||
if ($branches) {
|
||||
git -C $target switch $Branch
|
||||
} else {
|
||||
git -C $target switch -c $Branch origin/main
|
||||
}
|
||||
|
||||
$alreadyApplied = git -C $target log --oneline --grep "Fix nested tree group references on Blender 4+" -1
|
||||
if (!$alreadyApplied) {
|
||||
git -C $target am $patch
|
||||
}
|
||||
|
||||
git -C $target status --short --branch
|
||||
Loading…
Reference in a new issue