Skip to content

Commit

Permalink
Fix CopyState - ViewZoomPanState
Browse files Browse the repository at this point in the history
  • Loading branch information
melnikovalex committed Jun 22, 2020
1 parent c068953 commit bf7a39e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def paste(self):
dir_orient = vzps_data.dir_orient

active_ui_view = revit.uidoc.GetOpenUIViews()[0]
if revit.active_view.ViewType == view_type:
if revit.active_view.ViewType != view_type:
raise PyRevitException(
'Saved view type (%s) is different from active view (%s)'
% (vzps_data.view_type, type(revit.active_view).__name__))
Expand Down

0 comments on commit bf7a39e

Please sign in to comment.