Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@

"""

import bpy
# Import From Files
if "bpy" in locals():
import importlib
importlib.reload(importldraw)
else:
from . import importldraw

from . import importldraw
import bpy

bl_info = {
"name": "Import LDraw",
Expand Down
8 changes: 7 additions & 1 deletion importldraw.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
The python module loadldraw does the actual work.
"""

# Import From Files
if "bpy" in locals():
import importlib
importlib.reload(loadldraw)
else:
from .loadldraw import loadldraw

import configparser
import os
import bpy
Expand All @@ -35,7 +42,6 @@
BoolProperty
)
from bpy_extras.io_utils import ImportHelper
from .loadldraw import loadldraw

"""
Example preferences file:
Expand Down