From c3186d612e1c6d702f83af0f3359f1e85c7c4c8c Mon Sep 17 00:00:00 2001 From: Mariusz Janyszek <34140280+mario0000o7@users.noreply.github.com> Date: Mon, 24 Jul 2023 07:50:02 +0200 Subject: [PATCH] Set movie texture to entity from load_texture This update fix problem with set MovieTexture to entity because, it was possible to pass string with directory of movie and setter load this file but you couldn't after this set to another video --- ursina/entity.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ursina/entity.py b/ursina/entity.py index 673cfedb..41fb60a5 100644 --- a/ursina/entity.py +++ b/ursina/entity.py @@ -797,6 +797,11 @@ def texture(self, value): self.model.clearTexture() self._texture = None return + + if value.__class__ is MovieTexture: + self._texture = value + self.model.setTexture(value, 1) + return if value.__class__ is Texture: texture = value