mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 18:22:30 +00:00
update according to review comments
This commit is contained in:
@@ -32,7 +32,7 @@ classes = (
|
|||||||
operator.SelectGlobalId,
|
operator.SelectGlobalId,
|
||||||
operator.SelectIfcClass,
|
operator.SelectIfcClass,
|
||||||
operator.SelectPset,
|
operator.SelectPset,
|
||||||
operator.Reset3dView,
|
operator.UnhideAllElements,
|
||||||
operator.FilterModelElements,
|
operator.FilterModelElements,
|
||||||
prop.BIMFilterClasses,
|
prop.BIMFilterClasses,
|
||||||
prop.BIMFilterBuildingStoreys,
|
prop.BIMFilterBuildingStoreys,
|
||||||
|
|||||||
@@ -467,9 +467,14 @@ class ActivateIfcBuildingStoreyFilter(bpy.types.Operator):
|
|||||||
|
|
||||||
|
|
||||||
class Reset3dView(bpy.types.Operator):
|
class Reset3dView(bpy.types.Operator):
|
||||||
|
|
||||||
|
|
||||||
|
class UnhideAllElements(bpy.types.Operator):
|
||||||
"""Filter model elements based on selection"""
|
"""Filter model elements based on selection"""
|
||||||
bl_idname = "bim.reset_3d_view"
|
bl_idname = "bim.reset_3d_view"
|
||||||
bl_label = "Reset 3D View"
|
bl_label = "Reset 3D View"
|
||||||
|
bl_idname = "bim.unhide_all_elements"
|
||||||
|
bl_label = "Unhide All Elements"
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
for obj in bpy.data.scenes["Scene"].objects:
|
for obj in bpy.data.scenes["Scene"].objects:
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
|
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
import bpy
|
||||||
from ifcopenshell import util
|
from ifcopenshell import util
|
||||||
from ifcopenshell.util.selector import Selector
|
from ifcopenshell.util.selector import Selector
|
||||||
import blenderbim.tool as tool
|
import blenderbim.tool as tool
|
||||||
|
|||||||
Reference in New Issue
Block a user