Skip to content

Commit

Permalink
public release
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinc3r committed Nov 28, 2019
1 parent f6570cd commit 7e3c523
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 13 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,15 @@ Polycount is now available in `Properties` > `Scene` > `Polycount` tab.

## Usage

Polycount computation is done by user interaction, on the `Refresh` button.
- `Refresh` button recompute calculation. It's not automatic due to performance reasons
- `only selected` checkbox allow toogle computation between all meshes in active View Layers or only mesh in current selection
- clicking on columns name toogle or change meshes sorting
- current active objet is visible in the Object column, and can be changed by clicking on a name
- `*` char on Verts column tell you if if the mesh is out of mesh vertex buffer limit (65 535)
- `±` char on Tris column tell you if nGons are in the place

- Verts alrogithm have to be enhanced (for now, a smooth cube get the same count as a solid cube)
- Area is shown as m².

## Knows Limitations

- Verts algorithm have to be enhanced (for now, a smoothed shading cube get the same count (8) as a sharped one, which should give us a count of 24). [need help](https://github.com/Vinc3r/Polycount/issues/2)
Binary file modified _readme-assets_/polycount.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 2 additions & 8 deletions changelog-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,5 @@

> Current development additions, available through [last source code](https://github.com/Vinc3r/Polycount/tree/master/polycount) - use it at your own risks
- vertex buffer limit fixed (65 535 in place of 65 536, [testfile](https://github.com/Vinc3r/BlenderScripts/blob/master/_testFiles_/16b-mesh-vertex-buffer-limitation.glb) to play with [sandbox](https://sandbox.babylonjs.com/))
- an arrow show the current sorting way
- fix active button doing mess in sort
- deleting an object no longer thrown an error
- calculation can now be made even in edit mode
- user can choose if polycount is made in selection or whole scene
- resfresh button no longer put mess in sort
- versioning now use date
- *nothing yet*

12 changes: 12 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Polycount changelog

## [v2019.11.28](https://github.com/Vinc3r/Polycount/releases/tag/v2019.11.28)

- vertex buffer limit fixed (65 535 in place of 65 536, [testfile](https://github.com/Vinc3r/BlenderScripts/blob/master/_testFiles_/16b-mesh-vertex-buffer-limitation.glb) to play with [sandbox](https://sandbox.babylonjs.com/))
- an arrow show the current sorting way
- fix active button doing mess in sort
- deleting an object no longer thrown an error
- calculation can now be made even in edit mode
- user can choose if polycount is made in selection or whole scene
- resfresh button no longer put mess in sort
- versioning now use date
- clicking on object name not only make it active but select it also if not

## [v1.1.0](https://github.com/Vinc3r/Polycount/releases/tag/v1.1.0)

- huge performance gain: polycount is now refreshed only by user interaction, not anymore on each interface draw
Expand Down
2 changes: 1 addition & 1 deletion polycount/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"category": "Scene",
"wiki_url": 'https://github.com/Vinc3r/Polycount#polycount',
"tracker_url": 'https://github.com/Vinc3r/Polycount/issues',
"version": (2019, 10, 28),
"version": (2019, 11, 28),
"blender": (2, 80, 0)
}

Expand Down
5 changes: 3 additions & 2 deletions polycount/polycount.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def draw(self, context):
row.operator("polycount.user_interaction",
text="Refresh (last: {})".format(last_user_refresh), icon="FILE_REFRESH").refresh = True
row = layout.row()
row.prop(context.scene, "use_selection", text="use selection")
row.prop(context.scene, "use_selection", text="only selected")
box = layout.box()
col_flow = box.column_flow(
columns=0, align=True)
Expand Down Expand Up @@ -288,9 +288,10 @@ def execute(self, context):
else:
if self.make_active is not "" and \
bpy.data.objects.get(str(self.make_active)) is not None:
# if we only want to make active an object, no need to change sorting
# if we only want to make select an object, no need to change sorting
context.view_layer.objects.active = bpy.data.objects[str(
self.make_active)]
context.view_layer.objects.active.select_set(True)
else:
if last_user_refresh is not "never":
if self.poly_sort == polycount_sorting:
Expand Down

0 comments on commit 7e3c523

Please sign in to comment.