mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
ifcgit: add clone widget to new project wizard (#7579)
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import shutil
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
@@ -384,6 +385,18 @@ class BIM_PT_new_project_wizard(Panel):
|
|||||||
row = self.layout.row()
|
row = self.layout.row()
|
||||||
row.operator("bim.create_project")
|
row.operator("bim.create_project")
|
||||||
|
|
||||||
|
if shutil.which("git"):
|
||||||
|
git_props = context.scene.IfcGitProperties
|
||||||
|
box = self.layout.box()
|
||||||
|
row = box.row()
|
||||||
|
row.label(text="Clone a remote Git repository")
|
||||||
|
row = box.row()
|
||||||
|
row.prop(git_props, "remote_url")
|
||||||
|
row = box.row()
|
||||||
|
row.prop(git_props, "local_folder")
|
||||||
|
row = box.row()
|
||||||
|
row.operator("ifcgit.clone_repo", icon="IMPORT")
|
||||||
|
|
||||||
|
|
||||||
class BIM_PT_project_library(Panel):
|
class BIM_PT_project_library(Panel):
|
||||||
bl_label = "Project Library"
|
bl_label = "Project Library"
|
||||||
|
|||||||
Reference in New Issue
Block a user