Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
fixing highlighting and updating pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hurvan committed Oct 4, 2022
1 parent b13570c commit 57bf732
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/ambv/black
rev: 21.5b0
rev: 22.3.0
hooks:
- id: black
language_version: python3
Expand Down
4 changes: 2 additions & 2 deletions nexus_constructor/instrument_view/qentity_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ def __init__(self, parent, picker=True):

def switch_to_highlight(self):
for c in self.components():
if isinstance(type(c), type(self.hoover_material)):
if isinstance(c, Qt3DExtras.QGoochMaterial):
if c != self.hoover_material:
self.true_material = c
self.removeComponent(c)
self.addComponent(self.hoover_material)

def switch_to_normal(self):
for c in self.components():
if isinstance(type(c), type(self.hoover_material)):
if isinstance(c, Qt3DExtras.QGoochMaterial):
self.removeComponent(self.hoover_material)
self.addComponent(self.true_material)

Expand Down

0 comments on commit 57bf732

Please sign in to comment.