-
Notifications
You must be signed in to change notification settings - Fork 34
SG-40114 [Temp Workaround] Add compatibility with Houdini 21.0+ #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
42eca76
3e14c0b
e913558
a58294b
442474e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -131,6 +131,33 @@ def prepare_launch(self, exec_path, args, file_to_open=None): | |||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| self.logger.debug("Launch environment: %s" % (required_env,)) | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| # TODO - only for Houdini version 21.0+ | ||||||||||||||||||||||||||||||||||
| enable_sg_menu = self.get_setting("enable_sg_menu", True) | ||||||||||||||||||||||||||||||||||
| if enable_sg_menu: | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| class MockEngine: | ||||||||||||||||||||||||||||||||||
| pass | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| mock_engine = MockEngine() | ||||||||||||||||||||||||||||||||||
| mock_engine.logger = self.logger | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| mock_engine._menu_name = "Flow Production Tracking" | ||||||||||||||||||||||||||||||||||
| if self.get_setting("use_short_menu_name", False): | ||||||||||||||||||||||||||||||||||
| mock_engine._menu_name = "FPTR" | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+139
to
+146
|
||||||||||||||||||||||||||||||||||
| pass | |
| mock_engine = MockEngine() | |
| mock_engine.logger = self.logger | |
| mock_engine._menu_name = "Flow Production Tracking" | |
| if self.get_setting("use_short_menu_name", False): | |
| mock_engine._menu_name = "FPTR" | |
| def __init__(self, logger, menu_name): | |
| self.logger = logger | |
| self._menu_name = menu_name | |
| menu_name = "Flow Production Tracking" | |
| if self.get_setting("use_short_menu_name", False): | |
| menu_name = "FPTR" | |
| mock_engine = MockEngine(self.logger, menu_name) |
Copilot
AI
Sep 9, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The import statement should be moved to the top of the file with other imports to follow Python best practices and improve code readability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code assumes dialog.winId() returns a valid Windows handle without validation. This could fail if winId() returns None or an invalid handle, potentially causing ctypes.windll.user32.SetActiveWindow to fail silently or raise an exception.