Skip to content

Commit

Permalink
Check for updates on playblast run
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico-Duduf committed Aug 8, 2023
1 parent 5a01116 commit 90a3b58
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dublast/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"name" : "DuBlast",
"author" : "Nicolas 'Duduf' Dufresne, Kevin C. Burke (@blastframe)",
"blender" : (2, 81, 0),
"version" : (3,3,1),
"version" : (3,3,2),
"location" : "Properties > Output Properties > Playblast, 3D View > View menu",
"description" : "Create playblasts: Quickly render and play viewport animation.",
"warning" : "",
Expand Down
3 changes: 3 additions & 0 deletions dublast/playblast.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ def poll(cls, context):
return context.scene is not None

def execute(self, context):

# Check for updates
bpy.ops.dublast.updatebox('INVOKE_DEFAULT', discreet = True)

scene = context.scene
playblast = scene.playblast
Expand Down
9 changes: 0 additions & 9 deletions dublast/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
# <pep8 compliant>

import bpy
from bpy.app.handlers import persistent
from dublast import dublf

class DUBLAST_OpenURL(dublf.ops.OpenURL):
Expand Down Expand Up @@ -59,10 +58,6 @@ def draw(self, context):
layout.operator("dublast.updatebox", text="Check for updates now")
layout.operator("dublast.reportissue")

@persistent
def checkUpdateHandler(arg1, arg2):
bpy.ops.dublast.updatebox('INVOKE_DEFAULT', discreet = True)

classes = (
DUBLAST_OpenURL,
DUBLAST_UpdateBox,
Expand All @@ -74,10 +69,6 @@ def register():
for cls in classes:
bpy.utils.register_class(cls)

# Check for updates after loading a blend file
if not checkUpdateHandler in bpy.app.handlers.load_post:
bpy.app.handlers.load_post.append(checkUpdateHandler)

def unregister():
for cls in reversed(classes):
bpy.utils.unregister_class(cls)
Expand Down
2 changes: 1 addition & 1 deletion tools/dev_install.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@echo off

:: The path to Blender
SET "blender_config_path=%appData%\Blender Foundation\Blender\3.3"
SET "blender_config_path=%appData%\Blender Foundation\Blender\3.6"

:: The repo and dependencies
SET repoPath=%~dp0..
Expand Down

0 comments on commit 90a3b58

Please sign in to comment.