Skip to content

Commit

Permalink
Added Discord Link
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkblader24 committed Dec 5, 2017
1 parent f3dce65 commit f6e536c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,12 @@ There is an auto updater in the plugin so you don't have to keep checking for ne
- Added: New Material category in the panel Optimization
- Added: Material: New "Combine Same Materials" button. This significantly reduced draw calls on some models
- Added: Material: New "One Material Texture" button. This disables unused texture slots on the same material
- Added: Credits: New "Join our Discord" button
- Changed: Completely reworked eye tracking! You can now test how eye tracking will look like
- Changed: Reworked bone translation, it's much faster and better now!
- Changed: Armature: Now deletes bone groups (they are a color function, nobody's using that)
- Changed: Armature: Joining meshes now correctly reorders existing vrc shape keys
- Fixed: A bug where the mouth would open and close in certain positions in VRChat
- Fixed: Eye Tracking: A bug where the mouth would open and close in certain positions in VRChat
- Fixed: A stash full of bugs

#### 0.1.0
Expand Down
8 changes: 7 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,12 @@ def draw(self, context):
box.label('Created by GiveMeAllYourCats for the VRC community <3')
box.label('Special thanks to: Shotariya, Hotox and Neitri!')
box.label('Want to give feedback or found a bug?')
row = box.row(align=True)

col = box.column(align=True)
row = col.row(align=True)
row.operator('credits.forum', icon='LOAD_FACTORY')
row = col.row(align=True)
row.operator('credits.discord', icon='LOAD_FACTORY')


class UpdaterPreferences(bpy.types.AddonPreferences):
Expand Down Expand Up @@ -668,6 +672,7 @@ def register():
bpy.utils.register_class(tools.armature_manual.JoinMeshes)
bpy.utils.register_class(tools.armature_manual.MixWeights)
bpy.utils.register_class(tools.credits.ForumButton)
bpy.utils.register_class(tools.credits.DiscordButton)
bpy.utils.register_class(ArmaturePanel)
bpy.utils.register_class(TranslationPanel)
bpy.utils.register_class(EyeTrackingPanel)
Expand Down Expand Up @@ -703,6 +708,7 @@ def unregister():
# bpy.utils.unregister_class(tools.armature_manual.JoinMeshesTest)
# bpy.utils.unregister_class(tools.armature_manual.SeparateByMaterials)
bpy.utils.unregister_class(tools.credits.ForumButton)
bpy.utils.unregister_class(tools.credits.DiscordButton)
bpy.utils.unregister_class(OptimizePanel)
bpy.utils.unregister_class(EyeTrackingPanel)
bpy.utils.unregister_class(VisemePanel)
Expand Down
13 changes: 12 additions & 1 deletion tools/credits.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,21 @@

class ForumButton(bpy.types.Operator):
bl_idname = 'credits.forum'
bl_label = 'Go to the forums'
bl_label = 'Go to the Forums'

def execute(self, context):
webbrowser.open('https://vrcat.club/threads/cats-blender-plugin.6/')

self.report({'INFO'}, 'Forum opened')
return {'FINISHED'}


class DiscordButton(bpy.types.Operator):
bl_idname = 'credits.discord'
bl_label = 'Join our Discord'

def execute(self, context):
webbrowser.open('https://discord.gg/f8yZGnv')

self.report({'INFO'}, 'Discord opened')
return {'FINISHED'}

0 comments on commit f6e536c

Please sign in to comment.