mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
removed ReflectInheriableVariable::clone_value_box
- replaced with `Reflect::try_clone_box`
This commit is contained in:
@@ -42,9 +42,6 @@ pub trait ReflectInheritableVariable: Reflect {
|
||||
/// Returns true if value was modified.
|
||||
fn is_modified(&self) -> bool;
|
||||
|
||||
/// Clones self value.
|
||||
fn clone_value_box(&self) -> Box<dyn Reflect>;
|
||||
|
||||
/// Marks value as modified, so its value won't be overwritten during property inheritance.
|
||||
fn mark_modified(&mut self);
|
||||
|
||||
|
||||
@@ -561,11 +561,6 @@ where
|
||||
self.is_modified()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn clone_value_box(&self) -> Box<dyn Reflect> {
|
||||
Box::new(self.value.clone())
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn mark_modified(&mut self) {
|
||||
self.mark_modified()
|
||||
|
||||
Reference in New Issue
Block a user