Skip to content

Commit 34439b6

Browse files
committed
Removed Simple updater
### Removed - Simple Updater, think about Blenders Extension Platform, easier method perhaps ### Fixed - poll issue with nodes light object > use different approach to get active node vs material
1 parent e339a26 commit 34439b6

File tree

4 files changed

+54
-267
lines changed

4 files changed

+54
-267
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
All notable changes to this project will be documented in this file.
44

55

6+
## [0.2.9] - 2024-11-08
7+
8+
### Removed
9+
10+
- Simple Updater, think about Blenders Extension Platform, easier method perhaps
11+
12+
### Fixed
13+
14+
- poll issue with nodes light object > use different approach to get active node vs material
15+
616
## [0.2.8] - 2024-11-05
717

818
### Fixed
@@ -80,6 +90,7 @@ All notable changes to this project will be documented in this file.
8090
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
8191
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8292

93+
[0.2.9]:https://github.com/schroef/Extra-Image-List/releases/tag/v0.2.9
8394
[0.2.8]:https://github.com/schroef/Extra-Image-List/releases/tag/v0.2.8
8495
[0.2.3]:https://github.com/schroef/Extra-Image-List/releases/tag/v.0.2.3
8596
[0.2.2_2.80]:https://github.com/schroef/Extra-Image-List/releases/tag/v.0.2.2_2.80

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
I added a cleaner look to the panel and added the panel settings to option bool. I also added source image so users can pick image sequence or sinle image. I Also added is showing the image texture name above its size, this is very convienent because the source path only shows a very small section. This makes it much easier to identify the used texture.
66

7-
!['Preview extra imge list'](https://raw.githubusercontent.com/wiki/schroef/extra-image-list/images/extra-image-list-v028.jpg?2025-11-06)
7+
!['Preview extra imge list'](https://raw.githubusercontent.com/wiki/schroef/extra-image-list/images/extra-image-list-v029.jpg?2025-11-12)
88

99

1010
## Features

__init__.py

Lines changed: 42 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,17 @@
1717
1818
# Changelog
1919
20-
## v0.2.8 - 2024-11-05
20+
## [0.2.9] - 2024-11-12
21+
22+
### Removed
23+
24+
- Updater, thing about Blenders Extension Platform, easier method perhaps
25+
26+
### Fixed
27+
28+
- poll issue with nodes light object > use different approach to get active node vs material
29+
30+
## [0.2.8] - 2024-11-05
2131
2232
### Fixed
2333
@@ -28,25 +38,25 @@
2838
2939
-Shortcut double Right Click to preview texture UV Editor > Double Left click
3040
31-
## v0.2.7 - 2022-05-16
41+
## 0.2.7] - 2022-05-16
3242
3343
### Fixed
3444
3545
- Poll isseu texture preview > #295
3646
37-
## v0.2.6 - 2021-11-01
47+
## [0.2.6] - 2021-11-01
3848
3949
### Fixed
4050
4151
- Poll isseu texture preview
4252
43-
## v0.2.5 - 2021-07-29
53+
## [0.2.5] - 2021-07-29
4454
4555
### Fixed
4656
4757
- Panel issue difference 2.83 and 290
4858
49-
## v0.2.4 - 2021-04-06
59+
## [0.2.4] - 2021-04-06
5060
5161
### Added
5262
@@ -63,7 +73,7 @@
6373
6474
- List view updating with arrow buttons
6575
66-
## v0.2.3 - 2019-11-01
76+
## [0.2.3] - 2019-11-01
6777
6878
### Fixed
6979
@@ -83,7 +93,7 @@
8393
"category": "UV",
8494
"description": "An alternative image list for UV/Image Editor.",
8595
"location": "UV/Image Editor > Tools > Image List",
86-
"version": (0, 2, 8),
96+
"version": (0, 2, 9),
8797
"blender": (2, 80, 0),
8898
"wiki_url": "https://github.com/schroef/Extra-Image-List",
8999
"tracker_url": "https://github.com/schroef/Extra-Image-List/issues",
@@ -110,9 +120,6 @@
110120
PointerProperty
111121
)
112122
from bpy.app.handlers import persistent
113-
114-
from . import updater
115-
116123
#-------------------------------------------------------------------------------
117124
# UI PANEL - Extra Image List
118125
#-------------------------------------------------------------------------------
@@ -324,28 +331,43 @@ class EIL_OT_UpdateNode(Operator):
324331

325332
@classmethod
326333
def poll(cls, context):
334+
aNode = None
327335
# print(bpy.context.active_object.active_material)
328336
# print(bpy.context.active_object.active_material.node_tree.nodes.active)
329337
# return context.active_node and context.active_node.type == 'TEX_IMAGE'
330338
# source: https://blender.stackexchange.com/a/68351/7631
331339
# return context.scene.node_tree.nodes.active and context.scene.node_tree.nodes.active.type == 'TEX_IMAGE'
332340
# return context.active_object.active_material.node_tree.nodes.active is not None
333341
# return context.active_node is not None
334-
if bpy.context.active_object.active_material:
335-
actN = bpy.context.active_object.active_material.node_tree.nodes.active
336-
if actN.type=='GROUP':
337-
actN = actN.node_tree.nodes.active
342+
# actN = context.active_node
343+
if bpy.context.active_object.type == 'LIGHT':
344+
ntree = bpy.context.active_object.data.id_data.node_tree
345+
aNode = ntree.nodes.active
346+
else:
347+
if bpy.context.active_object.active_material:
348+
aNode = bpy.context.active_object.active_material.node_tree.nodes.active
349+
if aNode!=None:
350+
if aNode.type=='GROUP':
351+
aNode = aNode.node_tree.nodes.active
338352
else:
339353
return False
340-
# print(actN)
341-
# print(actN.type)
342-
return actN.type == 'TEX_IMAGE' and actN != None and bpy.context.active_object.active_material.node_tree.nodes
354+
return aNode.type == 'TEX_IMAGE' and aNode != None #and bpy.context.active_object.active_material.node_tree.nodes
343355

344356
def execute(self, context):
357+
aNode = None
345358
# Get active node
346-
aNode = context.active_object.active_material.node_tree.nodes.active
347-
if aNode.type=='GROUP':
348-
aNode = aNode.node_tree.nodes.active
359+
if bpy.context.active_object.type == 'LIGHT':
360+
ntree = bpy.context.active_object.data.id_data.node_tree
361+
aNode = ntree.nodes.active
362+
else:
363+
if bpy.context.active_object.active_material:
364+
aNode = bpy.context.active_object.active_material.node_tree.nodes.active
365+
366+
# print(aNode.type)
367+
# aNode = context.active_object.active_material.node_tree.nodes.active
368+
if aNode!=None:
369+
if aNode.type=='GROUP':
370+
aNode = aNode.node_tree.nodes.active
349371

350372
# Get list of all images
351373
img_list = list(bpy.data.images)
@@ -640,8 +662,6 @@ def register():
640662
bpy.types.Scene.extra_image_list = PointerProperty(type=ExtraImageList_Props)
641663
bpy.app.handlers.depsgraph_update_post.append(update_image_list)
642664

643-
updater.check(bl_info)
644-
updater.register()
645665

646666
# Add custom shortcut (image node double click)
647667
kc = bpy.context.window_manager.keyconfigs.addon
@@ -651,8 +671,6 @@ def register():
651671
icon_Load()
652672

653673
def unregister():
654-
655-
updater.unregister()
656674
global custom_icons
657675
bpy.utils.previews.remove(custom_icons)
658676

0 commit comments

Comments
 (0)