Skip to content

Commit

Permalink
v0.4.0 - fix #22 (compatibility with Kivy >=2.1.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheaterman committed Sep 18, 2022
1 parent c5172e8 commit a0b3f5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions panda3d_kivy/core/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from kivy.core.window import WindowBase
from kivy.event import EventDispatcher
from kivy.graphics import Callback, opengl as gl
from kivy.properties import ObjectProperty


class PandaMouse(DirectObject):
Expand Down Expand Up @@ -121,8 +120,6 @@ def handle_event(self, button, state_or_direction):


class PandaWindow(WindowBase):
_clearcolor = ObjectProperty()

modifier_keys = {
'control': 'ctrl',
'alt': None,
Expand Down Expand Up @@ -178,6 +175,10 @@ def __init__(self, display_region, panda_app, kivy_app, **kwargs):

self.kivy_app = kivy_app

def clear(self):
# Let Panda3D handle clearing the window
pass

def reset_gl_context(self):
gl.glEnable(gl.GL_BLEND)
gl.glDisable(gl.GL_DEPTH_TEST)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setuptools.setup(
name='panda3d-kivy',
version='0.3.0',
version='0.4.0',
author='Cheaterman',
author_email='[email protected]',
description='Panda3D add-on for Kivy integration.',
Expand Down

0 comments on commit a0b3f5d

Please sign in to comment.